Skip to content
99tests Blog
Testing guides

Software Testing Metrics: 12 Formulas, Examples and a Scorecard

A practical guide to 12 software testing metrics, with a formula for each, one release worked through, the numbers that mislead and a one-page scorecard.

Hand-drawn cover for a guide to software testing metrics: a bar chart on a board beside a phone showing a gauge
In this article
  1. What software testing metrics are for
  2. One release, one set of numbers
  3. Progress metrics: is the plan on track?
  4. Coverage metrics: what the tests touch
  5. Defect metrics: report quality, fix quality and hot spots
  6. Escape metrics: defect leakage and defect removal efficiency
  7. Production metrics: crash rate by phone model
  8. Speed and stability metrics: how fast, and how often it breaks
  9. Software testing metrics that mislead
  10. A one-page software testing metrics scorecard
  11. How to start measuring in one sprint
  12. Frequently asked questions

On a Friday afternoon in Pune, Meera shares her screen at the release review for a lending app. Her dashboard is green: 1,240 test cases executed, a 97% pass rate and no open critical bugs. The build goes to the Play Store at 6 pm.

By Tuesday the rating has slipped from 4.4 to 4.1. Forty-three new one-star reviews say the same thing: the app closes when a loan statement is opened. Nearly all of them come from one phone, the Redmi 13C. Not one of the 1,240 executions had been on that model.

The dashboard was accurate. It counted the work that was done, and nobody had asked it what was left untested. Software testing metrics are worth collecting only when they answer a question somebody has to act on. This guide covers 12 that do, with a formula for each, one release worked through from start to finish, the numbers that mislead and a one-page scorecard.

What software testing metrics are for

A metric earns its place by changing a decision. Testing supports three of them.

DecisionWho makes itMetrics that help
Is this build ready to ship?Product owner or release managerExecution rate, pass rate, open defects by severity
Where is the testing thin?QA leadRequirement coverage, device coverage
Is the process getting better?Engineering managerRejection rate, reopen rate, defect removal efficiency, change fail rate

The ISTQB Foundation Level syllabus sorts the metrics used in testing into seven families: project progress, test progress, product quality, defects, risk, coverage and cost. It is a good map, and nobody needs every road on it. A team of four that tracks six numbers each release learns more than a team that exports 40 into a slide deck.

Two habits make the rest of this guide work. Store raw counts, not percentages, because counts can be recombined later and percentages cannot. And write each formula down, because two teams can mean different things by "leakage" or "pass rate".

One release, one set of numbers

Every example below uses Meera's release: version 4.2 of the lending app, tested for two weeks before it shipped.

CountValue
Test runs planned1,280 (160 cases on each of 8 phones)
Test runs executed1,240 (1,203 passed, 37 failed)
Blocked / not run16 / 24
Requirements in the release60
Requirements with at least one executed test54
Defect reports raised64
Reports rejected12
Valid defects52 (4 critical, 15 major, 33 minor)
Fixes delivered and retested44
Fixes reopened after retest5
Defects found by customers in the 30 days after release9

Eleven rows in a spreadsheet, filled in at the end of each test cycle, are enough for eight of the 12 metrics. The other four come from your analytics tool, the bug tracker, the Play Console and the release log.

Notice the first two rows. The dashboard's "1,240 test cases" was 155 cases, each run on eight phones. The unit matters before any formula is applied.

Progress metrics: is the plan on track?

#MetricFormulaRelease 4.2
1Execution rateRuns executed ÷ runs planned1,240 ÷ 1,280 = 96.9%
2Pass rateRuns passed ÷ runs executed1,203 ÷ 1,240 = 97%

Execution rate is a schedule metric. Checked daily, it shows whether testing will finish before the release date: 40% on day six of a ten-day cycle means the plan is slipping, and the conversation about scope should happen that day. A test execution plan gives the planned figure something to stand on.

At the end of the cycle, the missing 3% matters more than the 97%. Here it is 40 runs: 16 blocked and 24 not run. The 16 blocked runs are two e-mandate cases on all eight phones, stuck because the bank's sandbox was down. The release has an untested payment path, and "96.9% executed" hides it.

Pass rate is the most quoted number in testing and the weakest one alone. It rises when bugs are fixed. It also rises when hard cases are dropped, when a failing case is marked blocked, or when expected results are loosened. Meera's 97% was true. It described the runs that existed, and no run existed for the phone that failed.

Coverage metrics: what the tests touch

Coverage is the share of something that testing has exercised. The useful question is always "share of what?"

#MetricFormulaRelease 4.2
3Requirement coverageRequirements with at least one executed test ÷ requirements54 ÷ 60 = 90%
4Device coverageShare of user sessions on phone models that were tested44%

Device coverage needs one export from your analytics tool. In this app, 12 phone models made up 61% of sessions. The team tested on 8 of them, which together made up 44% of sessions. The Redmi 13C, with 6% of sessions on its own, was one of the four left out. Counting models gives a comfortable "8 of 12". Counting sessions gives 44%, which is the figure that matches what users experience. Our guide to choosing devices for mobile app testing covers how to build that list.

For automated tests there is a third kind, code coverage: the share of lines that the tests run. Google's engineers describe their general guideline as 60% acceptable, 75% commendable and 90% exemplary, and add that a high percentage does not guarantee good tests, because a line can be run without its result being checked. They find the uncovered part more informative than the covered part. The difference between the two ideas is explained in test coverage vs code coverage.

Practical rule: read every coverage figure from the uncovered side. "90% of requirements" matters less than the names of the six requirements with no executed test.

Defect metrics: report quality, fix quality and hot spots

Raw bug counts say little. Three ratios built from them say a lot.

#MetricFormulaRelease 4.2
5Rejection rateReports rejected ÷ reports raised12 ÷ 64 = 18.8%
6Reopen rateFixes reopened ÷ fixes retested5 ÷ 44 = 11.4%
7Defect densityValid defects ÷ size of the area tested52 ÷ 60 = 0.87 per requirement

Rejection rate measures the testing side. A report is rejected when it is a duplicate, cannot be reproduced or describes behaviour that is by design. Each one costs a developer the time to read it, try it and close it. Of the 12 here, 7 were duplicates, 4 could not be reproduced and 1 was by design. The cures are known: search before filing, and write reports that carry the fields a developer needs, starting with exact steps to reproduce.

Reopen rate measures the fixing side. A fix is reopened when the retest shows the bug is still there, or has moved. At 11.4%, one fix in nine did not hold. A rising reopen rate usually points to fixes made without reproducing the bug first, or to retests on a different build or phone from the original report.

Defect density shows where bugs cluster, and it only becomes useful per module. Of the 52 valid defects, 21 were in e-mandate setup, which had 8 of the 60 requirements. That is 2.6 defects per requirement, against 0.6 for the rest of the release. E-mandate gets the extra regression time next cycle.

The severity split belongs beside all three. Four critical defects among 52 is a different release from 20 critical among 52.

Escape metrics: defect leakage and defect removal efficiency

The metric that judges the whole test effort is how many defects got past it.

#MetricFormulaRelease 4.2
8Defect removal efficiency (DRE)Found before release ÷ (found before + found by customers after)52 ÷ 61 = 85.2%
9Defect leakageFound by customers after ÷ (found before + found after)9 ÷ 61 = 14.8%

Capers Jones defines defect removal efficiency as the percentage of defects found and repaired before release, counted against what customers report in a fixed period afterwards. He uses 90 days. A team that ships every two weeks can use 30, as long as the window never changes. The same paper notes that most forms of testing find fewer than half of the defects present, which is why a high DRE comes from several layers of review and testing and not from one heroic cycle. The ISTQB syllabus lists a close relative, defect detection percentage, among its defect metrics.

Some teams calculate leakage as 9 ÷ 52, which gives 17.3%. Either version works if it is written down and kept.

Bar showing 52 defects found before release and 9 found by customers in 30 days, giving a defect removal efficiency of 85.2%

The percentage is the smaller half of the value. The larger half is going through the 9 escaped defects one at a time and asking why testing missed each.

Why it escapedCountChange for release 4.3
Phone model or Android skin not in the test set4Add the two untested models with the most sessions
Slow or switching network2Add cases for 2G speeds and a Wi-Fi to mobile data switch
No test case for the scenario2Write the cases and add them to regression
Passed in testing, failed with real data volumes1Test with an account that has three years of statements

Customer-found defects arrive as support tickets, crash reports and store reviews, and reviews are a bigger source than most teams assume. Our India App Quality Report found that 1 in 9 Play Store reviews of India's top apps describe a broken app. Network escapes have their own checklist in 12 network conditions your app should survive.

Production metrics: crash rate by phone model

Escapes that crash the app are counted by Google whether you count them or not. Android vitals reports the user-perceived crash rate: the share of daily active users who had at least one crash while using the app. Google sets two bad behaviour thresholds for it, 1.09% across all devices and 8% on any single phone model. For ANRs, the "app not responding" freezes, the thresholds are 0.47% and 8%. Play judges the 28-day average, and an app above a threshold may be shown to fewer people and may carry a warning on its store listing.

#MetricFormulaRelease 4.2
10Crash rate by phone modelDaily users with a crash ÷ daily active users, for each model9.4% on the Redmi 13C

The per-model threshold is where the opening story sits.

SegmentDaily active usersUsers with a crashUser-perceived crash rate
All phones50,0003100.62%
Redmi 13C3,0002829.4%

Overall, the app is comfortably under 1.09%. On the Redmi 13C it is over 8%, and 282 of the 310 affected users are on that one model. A dashboard that shows only the overall figure stays green while one phone in the hands of 3,000 daily users is broken.

Be careful when comparing tools. Android vitals counts per user per day. Its documentation gives the example of a user who has three sessions in a day and one crash: that user is a 100% crash rate in vitals and 33% in a session-based view such as Crashlytics.

For testers, the per-model table is a shopping list. The phones with the worst crash rates and the most users go into the next test cycle, and they have to be real phones, because an emulator does not reproduce a phone maker's memory limits or its changes to Android.

Speed and stability metrics: how fast, and how often it breaks

#MetricFormulaRelease 4.2
11Median time to fixMiddle value of the days from report accepted to fix retested3 days (critical: 1 day)
12Change fail rateReleases that needed immediate intervention ÷ releases3 ÷ 14 = 21%

Use the median for anything measured in days. One minor bug that sat untouched for 40 days pulls an average up and tells you nothing about a typical fix. Keep the old ones visible another way: a list of open defects older than 30 days, reviewed every release.

Split the clock if fixes feel slow. Time from report to triage, from triage to fix and from fix to retest often shows that the code change took a day and the waiting took a week.

Change fail rate comes from DORA's delivery metrics, where it is the ratio of deployments that need immediate intervention afterwards, such as a hotfix or a rollback. This team shipped 14 releases in six months and hotfixed three. It is the release-level view of escapes: DRE counts every defect that got out, and change fail rate counts the times it hurt enough to stop work.

Software testing metrics that mislead

A number misleads when it can be improved without improving the product.

NumberHow it goes wrongPair it with
Test cases writtenGrows by splitting one case into fiveRequirement and device coverage
Pass rateRises when hard cases are skippedExecution rate and the list of cases not run
Bugs found per testerRewards duplicates and trivia, and punishes whoever tests the stable moduleRejection rate and severity split
Bugs fixed per weekRewards quick patchesReopen rate
Code coverageCounts lines run, not results checkedDefect leakage
Overall crash rateAverages away one broken phone modelCrash rate by phone model

DORA's guide warns about Goodhart's law for its own metrics: once a measure becomes a target, people find ways to hit it that miss the point. Testing is no different. If testers are ranked by bugs filed, the rejection rate soon rises. If developers are ranked by bugs closed, the reopen rate follows.

Three guards work in practice. Never set individual targets on counts. Look at pairs, so that gaming one number shows up in its partner. And compare a team only with its own earlier releases, which is also DORA's advice: different apps and different teams produce numbers that cannot be ranked against each other.

Practical rule: pair every count with a rate, and every rate with its sample. "97% passed" should read "97% of 1,240 runs passed, on eight phone models that carry 44% of sessions".

Four pairs of testing metrics to read together: pass rate with device coverage, bugs reported with rejection rate, bugs fixed with reopen rate, and overall crash rate with crash rate by phone model

A one-page software testing metrics scorecard

A scorecard has four columns of numbers and one of words. This is release 4.2 beside 4.1.

Metric4.14.2TargetNote
Execution rate98%96.9%100% of critical-flow cases2 e-mandate cases blocked by the bank sandbox
Requirement coverage85%90%100% of high-risk requirements6 uncovered, 2 of them high-risk
Device coverage, by sessions38%44%60%Add Redmi 13C and one more model
Critical and major defects open at release100
Rejection rate27%18.8%Under 15%Duplicates are the main cause
Reopen rate9%11.4%Under 10%3 of 5 reopens in e-mandate
Defect removal efficiency, 30 days81%85.2%90%4 of 9 escapes were device-specific
Worst crash rate on one phone model3.1%9.4%Under 2%Redmi 13C, statement PDF

Read across each row. Five of the eight numbers improved, and the three that got worse point at the same two places: e-mandate and the Redmi 13C. That is a plan for the next cycle, written by the data.

The targets are this team's own. The 100% lines are deliberately narrow, covering critical flows and high-risk requirements, because a blanket 100% target is the kind that gets gamed. The scorecard sits on the first page of the test report, above the detail.

How to start measuring in one sprint

  1. Pick five. Execution rate, requirement coverage, device coverage, rejection rate and defect removal efficiency cover progress, thin spots and results.
  2. Write the definitions. One line each: the formula, where the counts come from and the window. "Leakage: customer-reported defects in 30 days ÷ all defects found, from the support desk and Play reviews."
  3. Record raw counts. A few minutes at the end of each cycle, in the same sheet, by the same person.
  4. Tag every escape. Each customer-found defect gets one reason: device, network, missing case, data or environment.
  5. Review at the retrospective. One page, one change. If the scorecard changes nothing in the next cycle's plan, drop a metric or replace it.

Add the Play Console's per-model crash table from the second release onwards, and change fail rate once there are ten releases to count.

When testing is outsourced, ask the vendor for the same raw counts: runs planned and executed per phone model, reports raised and rejected, and the environment for every finding. A vendor that reports only "bugs found" is giving you the half that flatters.

Frequently asked questions

What are software testing metrics? They are numbers that describe how much testing was done, what it covered, what it found, what it missed and how quickly problems were fixed. They exist to support decisions about releasing and improving.

Which software testing metrics matter most for a small team? Execution rate, requirement coverage, device coverage, rejection rate and defect removal efficiency. Together they need fewer than a dozen raw counts per release.

What is a good defect removal efficiency? Capers Jones put the US average at about 85% in 2011 and best-in-class projects above 99%. Your own trend over several releases, measured with the same window, is the better benchmark.

What is the difference between defect leakage and defect density? Leakage is the share of defects that reached customers. Density is the number of defects per unit of size, such as per requirement or per module, and it shows where defects cluster.

Is a 100% pass rate a good sign? Only next to coverage. A 100% pass rate on cases that skip the riskiest flows or the most-used phones says little.

How often should testing metrics be reviewed? Progress numbers daily during a test cycle, the scorecard at every release, and escape numbers once the 30-day window after a release has closed.


Software testing metrics are only as good as the testing underneath them, and device coverage and escape analysis depend on running cases on the phones your users carry. 99tests runs your test cases on tester-owned Redmi, Realme, Galaxy, Vivo and iPhone handsets, on Jio, Airtel and Vi. A reviewer verifies every finding before it reaches you, merging duplicates, checking completeness and grading severity, and each finding carries steps, expected and actual results, environment details and a screenshot or recording. If you need cases to start from, the free library has 950 test cases across 25 flows. Packages are fixed-price, and you can send your own cases to 99tests.