Stage 6 — Unit Tests
Agents: bmad-tea, bmad-testarch-test-design · Approver: Test Lead
Generate comprehensive tests matched to the language & framework chosen in intake.
- Invoke Test Agent: System calls
Skill: bmad-tea→Skill: bmad-testarch-test-design+bmad-testarch-framework - Framework Selection matches language: Jest (React/Node), JUnit 5 + Mockito (Java/Spring Boot), pytest (Python), Vitest (Vite projects)
- Coverage Targets — see the table below
- Test Types Generated: Unit tests, integration tests, contract tests, edge case tests, negative path tests
- Tests Enforcer Audit:
agent-s6-tests-enforcervalidates coverage reports - Test Lead Approval → Stage 7 unlocks
Coverage targets
| Layer | Coverage Target |
|---|---|
| Service Layer | 90% line + branch |
| API / Controller Layer | 85% |
| Data / Repository Layer | 80% |
Artifacts: docs/sdlc/{ProjectName}_06-unit-tests.md · .docx, tests/unit/ (all test files)