test-metrics-reporting
Installation
SKILL.md
Test Metrics & Quality Reporting
Measure to decide and improve, not to police. Prefer few, trended, outcome-oriented metrics; beware Goodhart's Law.
Metric set
| Question | Metric | Formula / note |
|---|---|---|
| Is testing finding bugs before users? | Defect Detection Percentage (DDP) / escape rate | found pre-release / (pre + post-release); escape = post/total |
| Are we shipping quality? | Production incidents, Sev1 count, change failure rate, crash-free sessions | trend per release |
| How fast do we recover? | MTTR / time to restore | detection + diagnosis + fix + deploy |
| Are tests trustworthy? | Flake rate, mean time to fix flaky, quarantine size | flaky runs / total runs (flaky-test-management) |
| Are tests effective? | Mutation score, diff-coverage, requirement coverage | mutation-testing, code-coverage-analysis |
| Is feedback fast? | Pipeline duration p50/p90, time-to-first-failure, queue time | target PR checks < 10 min |
| Is automation paying off? | Automation ROI | (manual hours saved × runs) − (build + maintain cost); % regression automated |
| Where are the bugs? | Defect density (per KLOC/story point), defects by module/root-cause/injection phase, reopened rate | drives focus & prevention |
| Is the backlog healthy? | Open defects by severity & age, SLA breaches | aging chart |
| Process health | Requirement churn, escaped requirements bugs, test case review rate | shift-left indicators |
Avoid: raw test-case counts, bugs-per-tester, 100% coverage targets, pass-rate alone (a 99% pass can hide the one failing critical flow).