Test quality assessment criteria for reviewing tests. Apply when evaluating tests for substantive coverage, organization, maintainability, and realistic test data variety.
Evaluate whether tests verify true functionality rather than rubber-stamping code with superficial assertions.
Layers:
rules.md - Quick reference and severity guidanceexamples.md - Detailed code examples| Factor | Question | Severity if problematic |
|---|---|---|
| Substantive assertions | Does the test prove anything meaningful? | Critical |
| True functionality | Is observable behavior tested, not implementation? | Critical |
| Test organization | Are tests in the right module and cohesive? | Improvement |
| Edge case coverage | Are error paths and boundaries tested? | Critical/Improvement |
| Test data variety | Is data varied or repetitive? |
| Improvement |
| Fixture usage | Are fixtures reducing duplication without tight coupling? | Improvement |
| Mock discipline | Are mocks used only when necessary? | Improvement/Critical |
| Tests run | Do tests actually pass without errors? | Critical |
A test is valuable if:
For rules: see rules.md
For examples: see examples.md