Testing Matrix¶
Page scope
This page is a quick-reference matrix.
For execution flow, triage method, and rationale, use Testing Strategy.
Test Coverage by Category¶
| Category | Typical Location | Command Pattern | When to Run |
|---|---|---|---|
| Unit/service | app/<domain>/tests/test_*.py | pytest <path> -v | local iteration |
| View/UI behavior | app/<domain>/tests/test_views*.py | pytest <path> -v | view/template changes |
| Model/integration | app/<domain>/tests/test_models*.py | pytest <path> -v | schema/query changes |
| Smoke integration | script wrapper | ./scripts/run_smoke_tests.sh | pre-PR and merge checks |
| Full regression | script wrapper | ./scripts/run_tests.sh | high-impact/cross-domain changes |
Minimum Validation by Change Type¶
| Change Type | Minimum Validation Set |
|---|---|
| template/view-only | targeted view tests + smoke |
| model/migration | model/integration + affected views + smoke |
| auth/security | affected module suites + security flows + smoke |
| cross-domain refactor | targeted suites + full regression |