mra test-audit
Audit test files against Kent Beck's 11 principles of good tests.
bash
mra test-audit frontend-app
MRA_AUDIT_PARALLEL=3 mra test-audit frontend-app # cap concurrent auditsDiscovery
Finds files matching:
*.test.*(JS / TS)*_test.*(Go)*.spec.*(Ruby, JS)
Excludes node_modules, dist, build, vendor, .git.
The 11 principles
- Isolated — tests do not depend on each other's state
- Composable — small units combine cleanly
- Fast — the whole suite runs in seconds
- Inspiring — the design of tests inspires the design of code
- Writable — tests are cheap to write
- Readable — tests read as specifications
- Behavioural — tests verify behaviour, not implementation
- Structure-insensitive — refactors do not break tests
- Automated — tests run without human intervention
- Specific — a failure points to a single cause
- Deterministic — same inputs, same result, every time
Output
Markdown per file with CRITICAL/HIGH/MEDIUM findings tagged by principle number and file:line evidence.