Testing process
Constitution-mandated TDD, layered suites, and the heavy-CI merge gate. High-level tests stay PR-blocking; Bruno and pg-integration remain with the backend module (#1190).
| Layer | Owner module | Command |
|---|---|---|
| Unit | backend-api / frontend | mvn test · npm test (Vitest) |
| Integration (H2) | backend-api | mvn test · integration suite |
| API (Bruno) | backend-api/api-test | bru run (stays with backend per #1190) |
| E2E (Playwright) | testing/e2e | npx playwright test |
| DB V&V | testing + Flyway guard | testing/scripts · pg-integration |
Gates agents must run
- Local mirror of CI:
bash workspace/sdlc/preflight.sh((CI-PREFLIGHT) - Merge authority:
bash workspace/sdlc/check-heavy-ci.sh <pr>— Integration + Coverage + Bruno + Playwright must be green (CI-MERGE-GATE). - Test plan: TEST-PLAN.md