baseball-engine / backend /e2e /README.md
github-actions[bot]
Automated Deploy: 3ea2037ab7d55d5b498f7e2ea0336818fc24f725
fe40b87
|
Raw History Blame Contribute Delete
1.17 kB

End-to-end QA suites

These suites run against a running API, by default http://127.0.0.1:8000; set BASE_URL to test another server. They use the real database and storage the server is configured with.

Every suite creates its own accounts (qa-<suite>-<runid>-<n>@example.com) and deletes them again at the end, along with their media.

cd backend
.venv/bin/python e2e/qa_accounts_teams.py     # auth, /me, teams, devices, billing error paths
.venv/bin/python e2e/qa_sessions_reports.py   # uploads, sessions, swing report, plan limit, drills, catalog
.venv/bin/python e2e/qa_coach_loop.py         # roster, queue, coach access, reviews, leaving a team
.venv/bin/python e2e/qa_coaching_workflow.py  # settings/consent, staff codes, threads+voice notes, goals, assignments, arm care, academy, cross-tenant

Each check prints PASS or FAIL. The exit code is 1 if any check fails.

The coaching-workflow suite needs a server started with ENV=test (or a configured Gemini key), because it posts swing reports, and working object storage for presigned audio/video uploads. It takes a few minutes because the login limiter slows the final cleanup checks.