It is the Monday before the quarterly business review. Your VP of Engineering wants "one slide on quality." You have 4,812 test cases, a 96% pass rate and a feeling that neither number says anything about whether customers had a good quarter.
That feeling is right. Most dashboards report activity. Useful ones report outcomes, with the formula shown.
Updated December 2026
QA metrics are measurements of how well testing protects users and how much that protection costs. The ones that matter track outcomes (escaped defects, change fail rate), test effectiveness (requirement coverage, flaky test rate) and efficiency (maintenance hours, time to feedback). Raw test counts and pass rate alone measure activity, not quality.
Key takeaways
- Pick 6–8 QA metrics across four groups: delivery, quality outcomes, test effectiveness, and efficiency and cost.
- Every metric below has a formula, a worked example, the direction "good" moves in and the usual way it gets gamed.
- Show executives outcomes (escaped defects, change fail rate, recovery time). Keep diagnostic metrics inside the team.
- Stop reporting raw test case counts and pass rate on their own. They reward volume, not protection.
A quick note on scope: this post is about software QA. If you were looking for call-center quality assurance scoring, that is a different discipline with different metrics.
What are QA metrics, and how are they different from QA KPIs?
QA metrics are any measurement of the testing process or the quality it produces: defects found, coverage, run time, flakiness. QA KPIs are the small subset you commit to improving and report upward. Every KPI is a metric; most metrics should never become KPIs.
That matters because of Goodhart's law. DORA's own guidance on its delivery metrics warns against turning them into mandated targets and against relying on any single number, because a measure that becomes a target gets gamed (DORA metrics guide). The same applies to every software testing metric in this post. So for each one you will see how it typically gets gamed, and whether it belongs in front of executives.
Which QA metrics matter most? The 15 at a glance
| # | Metric | Group | Good direction | Report to execs? |
|---|---|---|---|---|
| 1 | Change fail rate | Delivery | Down | Yes |
| 2 | Failed deployment recovery time | Delivery | Down | Yes |
| 3 | Escaped defects | Quality outcomes | Down | Yes |
| 4 | Defect density | Quality outcomes | Down, per component | Rarely |
| 5 | Defect leakage | Quality outcomes | Down | Yes, as a trend |
| 6 | Defect reopen rate | Quality outcomes | Down | No |
| 7 | Defect age (time to fix) | Quality outcomes | Down for severe bugs | Sometimes |
| 8 | Requirement coverage | Test effectiveness | Up on high-risk items | Yes, before big releases |
| 9 | Defect detection percentage | Test effectiveness | Up | Yes |
| 10 | Flaky test rate | Test effectiveness | Down | No |
| 11 | Branch coverage | Test effectiveness | Up on critical code | No |
| 12 | Automation coverage | Efficiency and cost | Up on regression scope | Sometimes |
| 13 | Test maintenance hours | Efficiency and cost | Down | Yes, as cost |
| 14 | Cost per run | Efficiency and cost | Down | Rarely |
| 15 | Mean time to feedback | Efficiency and cost | Down | No |
Worked examples use one fictional team: about 40 production deployments a month and 600 automated regression tests.
How do you measure delivery stability with DORA metrics?
DORA groups its software delivery metrics into throughput and instability. Two of them are the clearest link between QA and what customers feel. Apply them per application or service, not across the whole company, as DORA recommends (DORA metrics guide).
1. Change fail rate
- Definition: DORA describes it as the ratio of deployments that require immediate intervention after they ship, usually a rollback or hotfix (dora.dev).
- Formula: deployments needing immediate intervention ÷ total deployments × 100.
- Worked example: 3 of 40 deployments in November were rolled back or hotfixed. 3 ÷ 40 = 7.5%.
- What good looks like: trending down while deployment frequency holds steady or rises. A lower rate bought by shipping less often is not a win.
- How it gets gamed: batching changes into fewer, larger deploys, or quietly classifying a hotfix as a "planned follow-up."
- Report to execs? Yes. It is the single best quality signal leadership already understands.
2. Failed deployment recovery time
- Definition: the time it takes to recover from a deployment that fails and needs immediate intervention. In 2023 DORA replaced "time to restore service" with this narrower metric, so outages with outside causes (a data center failure, say) no longer count (DORA metrics history).
- Formula: sum of (recovery time − failure detected time) for failed deployments ÷ number of failed deployments. Use the median if one incident skews it.
- Worked example: the three failures took 25, 40 and 190 minutes. Mean = 85 minutes; median = 40 minutes.
- What good looks like: down, with fewer long-tail incidents.
- How it gets gamed: starting the clock when someone acknowledges the alert, not when users were first affected.
- Report to execs? Yes, alongside change fail rate.
Which quality outcome metrics show what reached users?
3. Escaped defects
- Formula: count of defects found in production during a period, ideally split by severity.
- Worked example: November had 14 production defects: 1 critical, 4 major, 9 minor.
- What good looks like: critical and major escapes trending down.
- How it gets gamed: downgrading severity, merging several reports into one ticket, or routing customer complaints to "feature request."
- Report to execs? Yes, by severity. This is the metric your customers experience directly.
A clear bug report template with a "found in" field (QA, UAT, production) makes escaped defects and leakage cheap to count.
4. Defect density
- Formula: defects ÷ size of the component. Size is usually thousand lines of code (KLOC), but story points or number of changed files work if you use them consistently.
- Worked example: the checkout service (12 KLOC) had 18 defects this quarter: 1.5 defects per KLOC. The search service (30 KLOC) had 15: 0.5 per KLOC. Checkout needs attention.
- What good looks like: use it to compare components within your own codebase, then point more testing at the dense ones.
- How it gets gamed: more code lowers the ratio. Verbose code looks "higher quality."
- Report to execs? Rarely.
5. Defect leakage
- Formula: defects found in a later stage ÷ (defects found in the earlier stage + defects found in the later stage) × 100. Most teams measure QA-to-production; some also measure QA-to-UAT.
- Worked example: QA found 86 defects in the release cycle; 14 escaped to production. 14 ÷ (86 + 14) = 14% leakage.
- What good looks like: down, measured per release with the same counting window each time (for example, 30 days after release).
- How it gets gamed: stretching the QA count with trivial cosmetic bugs, which shrinks the percentage without changing what users see.
- Report to execs? Yes, as a trend line rather than a single number.
6. Defect reopen rate
- Formula: defects reopened after being marked fixed ÷ defects closed × 100.
- Worked example: 9 of 120 closed defects were reopened: 7.5%.
- What good looks like: down. A rise points at weak fix verification.
- How it gets gamed: filing a new ticket instead of reopening the old one.
- Report to execs? No.
7. Defect age (time to fix)
- Formula: median time from defect reported to fix verified, by severity.
- Worked example: critical defects: median 1.5 days. Major: 6 days. Minor: 34 days.
- What good looks like: short and predictable for critical and major bugs.
- How it gets gamed: closing tickets as "won't fix" or "cannot reproduce" to reset the clock.
- Report to execs? Sometimes, for critical defects only.
Which test effectiveness metrics prove the tests are any good?
8. Requirement coverage
This is the most useful of the test coverage metrics because it ties tests to what the business asked for.
- Formula: requirements (or user stories, or acceptance criteria) with at least one passing test ÷ total requirements in scope × 100.
- Worked example: the release has 52 stories; 47 have linked, passing tests. 47 ÷ 52 = 90%.
- What good looks like: close to full on high-risk requirements (payments, login, data export) before release. Weight by risk; 90% coverage that misses checkout is worse than 80% that includes it.
- How it gets gamed: linking one shallow test to a story so it "counts," with no negative or edge cases.
- Report to execs? Yes, before major releases, with the uncovered high-risk items named.
9. Defect detection percentage (DDP)
- Formula: defects found by testing before release ÷ (defects found before release + defects found after release) × 100. It is the mirror image of leakage.
- Worked example: 86 found in QA, 14 in production. 86 ÷ 100 = 86% DDP.
- What good looks like: up over successive releases, using a fixed post-release window.
- How it gets gamed: the same as leakage: inflating pre-release counts with low-value findings.
- Report to execs? Yes. Report either DDP or leakage, not both.
10. Flaky test rate
- Formula: tests that both passed and failed on the same code in a period ÷ total tests run × 100.
- Worked example: 18 of 600 regression tests flipped on unchanged commits this month: 3%.
- What good looks like: down, with every flaky test either fixed or quarantined within a set time.
- How it gets gamed: automatic retries that hide flakiness, or deleting flaky tests without replacing the coverage they gave.
- Report to execs? No.
11. Branch coverage
- Formula: code branches executed by tests ÷ total branches × 100.
- Worked example: the pricing module has 400 branches; tests execute 300. 75%.
- What good looks like: high on critical, logic-heavy code; much less important on glue code and generated files.
- How it gets gamed: tests that execute code without asserting anything. Coverage goes up; protection does not.
- Report to execs? No. Code coverage says what ran, not what was checked.
Which efficiency and cost metrics show what testing costs?
12. Automation coverage
- Formula: automated test cases in the regression scope ÷ total test cases in the regression scope × 100.
- Worked example: the regression scope has 750 cases; 600 are automated. 80%.
- What good looks like: up for stable, repeatable regression flows. 100% is not the goal; exploratory testing stays manual. Your test automation strategy document should say which scope counts.
- How it gets gamed: automating easy, low-risk flows first to move the percentage, or keeping broken automated tests in the count.
- Report to execs? Sometimes, tied to a cost or release-speed goal rather than as a vanity percentage.
13. Test maintenance hours
- Formula: engineer hours spent fixing or updating existing tests (not writing new coverage) per month. Track it as a share of total QA hours too.
- Worked example: 2 engineers log 38 and 26 hours of test repairs in a month: 64 hours, or 20% of their 320 combined hours.
- What good looks like: down, or at least flat while the suite grows.
- How it gets gamed: logging repairs as "new test development," or skipping repairs and letting failing tests sit disabled.
- Report to execs? Yes, converted to cost. Hours × loaded hourly rate is a number finance understands.
14. Cost per run
- Formula: (infrastructure cost + tool cost for the period) ÷ number of full regression runs in the period.
- Worked example: $1,200 of cloud and tooling cost for 120 full regression runs = $10 per run.
- What good looks like: stable or down as run frequency goes up.
- How it gets gamed: running the suite more often on trivial commits to dilute the cost, or leaving shared infrastructure out of the numerator.
- Report to execs? Rarely; fold it into total testing cost.
15. Mean time to feedback
- Formula: median time from a commit or pull request being pushed to the developer seeing the test result.
- Worked example: pull request checks take 9 minutes at the median; the full nightly regression reports after 4 hours.
- What good looks like: fast enough that developers wait for it rather than context-switch. Split suites so smoke and critical-path checks report first.
- How it gets gamed: dropping slow but important tests from the pull request pipeline and never running them anywhere else.
- Report to execs? No, but it strongly affects change lead time, which they may already see.
What should a one-page QA metrics dashboard look like?
Copy this layout into a spreadsheet, a wiki page or your BI tool. Top row is for leadership; the rest is for the team. Fill the "This month" and "Last month" columns and write one sentence in "Action."
| Section | Metric | Formula (short) | This month | Last month | Direction wanted | Owner | Action |
|---|---|---|---|---|---|---|---|
| Executive summary | Change fail rate | failed deploys ÷ deploys | 7.5% | 10% | Down | Eng manager | |
| Executive summary | Failed deployment recovery time | median minutes to recover | 40 min | 55 min | Down | On-call lead | |
| Executive summary | Escaped defects (critical + major) | production defects by severity | 5 | 7 | Down | QA lead | |
| Executive summary | Defect detection percentage | pre-release ÷ all defects | 86% | 82% | Up | QA lead | |
| Release readiness | Requirement coverage (high-risk) | covered ÷ high-risk stories | 100% | 95% | Up | QA lead | |
| Suite health | Flaky test rate | flaky ÷ tests run | 3% | 4% | Down | Automation lead | |
| Suite health | Mean time to feedback (PR) | median minutes | 9 min | 12 min | Down | Automation lead | |
| Cost | Test maintenance hours | hours repairing tests | 64 h | 70 h | Down | QA lead | |
| Cost | Cost per regression run | spend ÷ runs | $10 | $11 | Down | Eng manager | |
| Targeting | Defect density (top 3 components) | defects ÷ KLOC | checkout 1.5 | checkout 1.8 | Down | Component owners |
Keep it to one page. If a row has had no "Action" for three months, delete it. Pair it with the regression testing scope you agreed on, so coverage numbers refer to a fixed list.
Which QA metrics should you stop reporting?
Some test metrics feel reassuring and tell leadership almost nothing:
- Raw test case counts. 4,812 tests says nothing about what they check. It rewards duplicate and trivial tests and punishes cleanup.
- Pass rate on its own. A 96% pass rate can come from a suite that never tests checkout. It also drops when testers find real bugs, which is the opposite of the signal you want. Show it only next to coverage and escaped defects.
- Bugs found per tester. It turns testers into competitors, inflates trivial reports and discourages time spent on prevention.
- Line coverage as a quality score. Executed is not verified. Report branch coverage inside the team, if at all.
- Total defects found (without stage or severity). More bugs found could mean better testing or worse code. Without "where" and "how bad," the number cannot be read.
Where does Robonito fit in tracking QA metrics?
Robonito is our product, an agentic QA platform where AI agents create, run and maintain end-to-end tests. It is not a test management tool or a bug tracker, so defect density, defect age and DORA numbers still come from your issue tracker and deployment pipeline. If you need a home for test cases and requirement links, see our guide to test management tools; Robonito integrates with TestRail and Zephyr, and with Jira on Starter and above.
Where it helps with this dashboard:
- Run results and reports. Every run keeps video, network traces and an AI root cause for failures, plus pass rates, trends and risk analysis across runs. That feeds flaky test rate, mean time to feedback and cost per run without a separate script.
- Maintenance hours. Self-healing tests adapt steps when labels, layouts or locators change, and healed steps are logged for review, so you can see what changed instead of trusting it blindly.
- One real data point. A Canadian healthcare company moved 700 Selenium test cases to Robonito in two weeks, with the Robonito team doing the migration. Before, the suite took 4 people 3 months to build and 1 full-time engineer to maintain. After, maintenance is no more than 10 hours a month, plus a $999/month subscription.
Where it does not fit: if your gap is process (no severity rules, no "found in" field, no agreed regression scope), a new tool will not fix your QA metrics. Start with the dashboard above. For how Robonito sits next to your other tools, see the AI QA stack, and our whitepapers cover planning and cost in more depth.
or .
Frequently asked questions
What are the most important QA metrics?
For most teams: escaped defects by severity, change fail rate, failed deployment recovery time, defect detection percentage and requirement coverage on high-risk items. Add flaky test rate and maintenance hours to keep the suite healthy and affordable.
How many QA KPIs should a team track?
Few enough that each one has an owner and an action. Four to six reported upward and a handful more inside the team is a sensible range. A metric nobody acts on should be dropped.
What is a good defect density?
There is no universal number, because teams count defects and code size differently. Use defect density to compare components inside your own codebase and point testing at the densest ones.
What is the difference between defect leakage and escaped defects?
Escaped defects is a count of bugs found in production. Defect leakage is a percentage: escaped bugs divided by all bugs found across stages. Leakage lets you compare releases of different sizes.
Is test pass rate a useful metric?
Only in context. A pass rate next to requirement coverage and escaped defects shows suite health. On its own it can look excellent while the tests miss the features customers use most.
Want run results, failure root causes and self-healing logs feeding your QA dashboard? or .




