Quality metrics and escaped defects

Last reviewed November 8, 2026

The most useful quality measures for a Scrum Team look at what reaches users: how many defects escape to production, how often a release causes a failure, and how quickly the team recovers when it does. They are hard to game, because customers find the defects and outages happen whether anyone counts them or not. Internal measures, such as test coverage, can help find weak spots, but they shouldn't become targets.

In Scrum, quality is built into the Definition of Done: an item isn't done until it meets the team's quality standard. Quality metrics show whether that standard is strong enough.

Measures that help

MeasureWhat it countsWhy it helps
Escaped defectsDefects found after release, usually by users, per SprintShows what the Definition of Done misses
Change failure rateShare of releases that cause a failure needing a fixShows whether speed is hurting stability
Time to restoreHow long it takes to recover from a failure in productionShows how resilient the team and system are
Reopened defectsFixes that didn't fix the problemShows rushed or shallow fixes
Age of open defectsHow long known defects stay unfixedShows whether quality debt is growing

Change failure rate and time to restore are two of the four measures from the DORA research program. The other two, how often a team deploys and how long a change takes to reach production, measure speed. Together, they show whether a team is fast and stable, rather than one at the cost of the other. DORA now calls time to restore "failed deployment recovery time", but the idea is the same.

Measures to handle with care

  • Test coverage. Useful to find untested code. As a target, it produces tests that run code without checking anything.
  • Defects found in testing. Rising numbers can mean worse code or better testing. On its own, it is ambiguous.
  • Defects per Developer. It discourages honesty about mistakes and punishes people working on the hardest parts.
  • Bugs closed. It rewards closing over fixing. See Metrics that backfire.

Tracking escaped defects

Keep it simple:

A worked example

Quality and the Definition of Done

Every escaped defect is a question about the Definition of Done: why didn't our standard catch this? Over time, the answers make the standard stronger. The Scrum Guide expects the Definition of Done to evolve, and quality measures tell the team where it should evolve.

It works the other way, too. If the Definition of Done is strengthened, escaped defects should fall. If they don't, the new rule isn't working, or isn't being followed.

Common pitfalls

Counting everything. A dashboard of twenty quality numbers gets ignored. Pick two or three.

Measuring without looking at causes. The count tells you that something is wrong. Looking at actual defects tells you what.

Blaming individuals. Escaped defects are a property of the team's process and standards. Blame makes people hide them.

Hiding defects to look good. If escaped defects become a target, they get relabeled as "feature requests" or "user error".

Trading quality for speed. Pressure to deliver faster without a strong Definition of Done shows up later as escaped defects and failures.

Questions

What is an escaped defect?

A defect found after a release, usually by users or in production, rather than by the team before release. It shows what the team's quality checks missed.

What are the DORA metrics?

Four measures of software delivery from the DORA research program: deployment frequency, lead time for changes, change failure rate and time to restore service. Two measure speed and two measure stability.

What is a good change failure rate?

Lower is better, and the trend matters most. DORA's research has found that the best-performing teams keep it low while also deploying often, which shows speed and stability can go together.

Should a team set a target for test coverage?

Usually not. Coverage targets lead to tests that execute code without checking results. Use coverage to find untested areas, and measure quality by what reaches users.

How do quality metrics relate to the Definition of Done?

Each escaped defect points to something the Definition of Done didn't catch. Teams use quality metrics to decide how to strengthen their Definition of Done.