Testing¶
Backend¶
Tests use pytest with an in-memory SQLite database. Run from the annotation-backend/ directory.
With coverage:
Test files live in annotation-backend/tests/ and cover:
- Authentication and JWT flow
- Project and user CRUD
- CSV import validation
- Disentanglement annotation read/write
- Adjacency pair annotation read/write
- IAA computation
- Admin-only access guards
Frontend¶
Tests use Vitest.
CI¶
GitHub Actions runs the backend test suite on every push and pull request. See .github/workflows/backend-tests.yml.