Short answer
In a small team 4-6 metrics calculated once a month are enough: the share of bugs only found in production (escape rate), the number of critical production bugs, regression time before a release, the share of flaky tests, time to fix a critical bug and the share of releases that needed a hotfix. Don’t measure the number of bug reports per tester or code coverage as a target, because both are easy to improve without improving quality.
6 metrics that make sense
| metric | formula | example direction |
|---|---|---|
| escape rate | production bugs / all bugs found | falling month to month, e.g. from 30% to 15% |
| critical production bugs | count per month | close to zero in the critical paths |
| regression time | from start to regression result before a release | automated in minutes, manual a few hours at most |
| flaky tests | tests passing only on retry / all tests | below 1-2% |
| time to fix a critical bug | from report to fix in production | hours, not days |
| releases with a hotfix | releases followed by a hotfix / all releases | falling, ideally a few percent |
The values are examples. The trend matters more than any specific threshold: is it better month to month.
Escape rate by example
In October the team found 48 bugs before release, and customers reported 12 from production. Escape rate = 12 / (48 + 12) = 20%. If in November, after adding a smoke test in CI, 6 bugs came from production with 54 found earlier, the escape rate dropped to 10%.
Count only things that are actually bugs, not change requests. Ideally split by severity, because 10 typos and 1 bug in payments are not the same.
DORA metrics
Four metrics from the research of the DevOps Research and Assessment team describe the whole release process:
- deployment frequency,
- lead time from commit to production,
- change failure rate, the share of releases causing a failure,
- time to restore service after a failure.
The last two are quality metrics directly. If you already track them, don’t duplicate them with your own.
Metrics better left alone
- bugs reported per tester: rewards small reports, not important ones;
- number of test cases: 500 weak cases are no better than 100 good ones;
- code coverage as a target: good as a signal of where tests are missing, bad as a target, because it leads to tests without assertions;
- pass rate: 100% on tests that check nothing means nothing.
How to report
Once a month, on one page: 4-6 metrics, the trend over the last 3 months, a one-sentence comment on each and 1-3 actions for the next month. Metrics nobody reacts to aren’t worth tracking. How these metrics fit into the process is covered in how to reduce bugs in production and a one-page test strategy.
How I can help
In a QA audit I calculate these metrics on your data from recent months, show where bugs leak through and set up a simple monthly report. Describe your team and tools in the contact form.