File size: 1,171 Bytes
4598c11
 
 
 
 
 
 
 
 
 
 
fe40b87
4598c11
 
 
fe40b87
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 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.

```bash
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.