Skip to content
TestLine Menu
TestLine
QA process

Which quality metrics make sense? Escape rate, regression time, flaky tests

Six metrics that say something about quality, formulas and example thresholds, metrics better left alone, and how to report them once a month.

author
Artur Machowski, Senior QA Engineer
published
reading
6 min

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

metricformulaexample direction
escape rateproduction bugs / all bugs foundfalling month to month, e.g. from 30% to 15%
critical production bugscount per monthclose to zero in the critical paths
regression timefrom start to regression result before a releaseautomated in minutes, manual a few hours at most
flaky teststests passing only on retry / all testsbelow 1-2%
time to fix a critical bugfrom report to fix in productionhours, not days
releases with a hotfixreleases followed by a hotfix / all releasesfalling, 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.

Frequently asked questions

Which quality metrics are worth tracking?

In a small team 4-6 are enough: the share of bugs that reached production (escape rate), critical production bugs per month, regression time, the share of flaky tests, time to fix a critical bug and the share of releases that needed a hotfix.

What is escape rate?

It's the share of bugs that were only found in production among all bugs found in a given period. With 12 production bugs and 48 found earlier, the escape rate is 20%.

Is the number of bugs found a good metric for a tester?

No. A tester who reports many minor bugs looks better than one who finds a single critical one. The number of reports also depends on code quality. It's better to measure how many bugs got through to production.

Does code coverage make sense as a metric?

As a signal yes, as a target no. Low coverage tells you that something is definitely untested. High coverage doesn't tell you the tests check anything important. Setting a target such as 90% often ends with tests without assertions.

What are DORA metrics?

Four metrics from the research of the DevOps Research and Assessment team: deployment frequency, lead time from commit to production, the share of releases causing a failure and time to restore service. The last two are directly about quality.

Got a release in a few weeks?

Describe your project in the form. I'll reply with questions about scope or an initial test plan.