Track outcomes first (escaped defects, defect detection percentage, leakage), then speed (regression cycle time, turnaround, fix verification time), automation health (regression coverage, flaky rate, maintenance share) and report quality (rejection and reopen rates). Compute each from the buyer's tracker, pipeline and test management tool, with a written numerator, denominator and window. Test case counts, defect counts, pass rate, code coverage and average times can mislead when they are read alone.
On this page
What a metric definition has to fix before anyone computes it
Two parties can compute the same metric from the same tracker and disagree, so the definition fixes five things: scope, window, numerator, denominator and who decides the disputed cases. With an external team the fifth matters most. If the vendor sets the resolution field on its own defects, it decides its own rejection rate. The vendor may run the queries, but the buyer owns them and holds the raw data, so that either side can reproduce a figure in a dispute.
The purpose should be fixed as well. The ISTQB (International Software Testing Qualifications Board, the body that publishes tester certification syllabi) foundation syllabus gives test metrics three purposes: progress against schedule and budget, current quality of the test object, and effectiveness of the test activities against the test objectives or an iteration goal ev-content-qametrics-002confidence A. This article is about the third. A number that answers the second, such as open defects at release, describes the product and everyone who worked on it.
The syllabus says common test metrics include project and test progress, product quality, defect, risk, coverage and cost metrics, and it names defect density and defect detection percentage among the defect metrics ev-content-qametrics-001confidence A. That section gives names and no formulas ev-content-qametrics-001confidence A. The formulas below are this site's working definitions, written so that a query can produce them. Two formulas are not the site's: change fail rate comes from the research program cited in its row, and statement coverage comes from the syllabus.
The metric set: formula, data source and known distortion
Every row takes its data from a system or a log the buyer controls. "Window" means the same set of releases or the same calendar period in every row, because rates from different windows cannot be read together. Three terms recur: triage (the step that decides whether each reported defect is valid and how severe it is), 90th percentile (the value that nine in ten cases do not exceed) and quarantined (set aside so that a test's result no longer blocks a build) tests.
| Metric | Formula | Data source | What can distort it | Source |
|---|---|---|---|---|
| Escaped defects per release | Defects first reported from production and traced to the release, counted by severity; split by a reviewed-in-refinement field where the tracker holds one | Tracker: found-in field, affected version, severity set by buyer triage | Duplicate customer reports; old defects found late and traced to the wrong release | |
| Defect detection percentage | Accepted defects found before release / (those + escaped defects), same scope and severities; rejected and duplicate reports excluded | Tracker: found-in field, resolution and created date | Computed too early, before production defects have surfaced; minor defects padding the numerator | |
| Defect leakage | In-scope escaped defects that joint review says an agreed test should have caught / (those + accepted in-scope defects found before release), for the severities the definition names | Tracker plus the signed root-cause log | Scope list not updated; review held by one side only | |
| Change fail rate | The ratio of deployments that require immediate intervention following a deployment; this site divides by all deployments in the window | Deployment log and incident record | Causes outside testing, such as configuration changes | ev-content-qaaudit-002confidence A |
| Regression cycle time | Release decision time minus time the build was handed to regression; report median and longest | Pipeline timestamps and release ticket | Includes waiting for environments and for the decision itself | |
| Regression turnaround | Report sign-off minus build-ready, in working hours, minus logged excluded hours | Pipeline event, test management tool, environment monitoring | Calendar mismatch between the two countries; excluded hours logged after the event | |
| Not-run share | Cases in the cycle's scope list with no result at sign-off / all cases in the scope list | Test management tool: scope list and results | Scope list shortened before the cycle; cases closed without a run | |
| Skipped share | Automated tests skipped or disabled in a full run / all tests in the suite | Per-test results and the test repository | Skipped tests deleted from the suite before the count | |
| Regression yield | Two series side by side: accepted defects first found by a regression run, and regression hours in the same cycle | Tracker found-in field; hours logged on the cycle's ticket in the buyer's tracker | A more stable product lowers it without any change in the testing | |
| Fix verification time | Time of verified or reopened status minus time of ready-for-test status; median and 90th percentile per severity | Tracker status history | Status changed in bulk at the end of the day; fixes not yet deployed to the test environment | |
| Critical defect notice time | Time of the notice in the agreed channel minus time the defect was observed, for top-severity defects | Test run log and the channel's message log | Observation logged late; severity lowered before the notice | |
| Regression automation coverage | Active regression cases that run in the pipeline without manual steps / all active regression cases | Test management tool joined to the pipeline test list | Cases split or merged; obsolete cases left in the denominator | |
| Flaky rate | As the flaky tests article defines it: distinct flaky tests / distinct tests with at least two attempts on the same commit, environment and test data version; window and repeat count fixed in advance | Per-test results of every attempt, retries kept | Retries overwritten in the export; quarantined tests left out of the repeat runs | |
| Automation repair time | First passing run minus announcement of the application change, for vendor-maintained tests broken by it | Pipeline history and the change ticket | Changes announced late; the test disabled instead of repaired | |
| Automation maintenance share | Hours logged on tickets of type repair / hours logged on all automation tickets | Ticket type and logged hours in the buyer's tracker, types agreed before the window opens | Repair work logged as new test work | |
| Defect rejection rate | Vendor defects closed by buyer triage as invalid, duplicate or not reproducible / all vendor defects triaged | Tracker resolution field | Requirement changes the vendor was not told about; untriaged defects left out | |
| Reopen rate | Defects verified in the window and later moved back to open for the same fault / defects verified in the window | Tracker status history | New faults reopened under an old ticket; reopenings that fall after the report date |
The contract wording for the SLA (service level agreement, the contract section that sets measurable targets and remedies) rows, with clocks and exclusions, belongs to the article on service level metrics. That article narrows leakage to the two highest severities and bases its stability row on the vendor's flaky rate, which the flaky tests article defines. The starting values come from the audit a buyer runs before outsourcing, computed with the same queries. The full definition behind the flaky rate, with the rule for quarantined tests, sits in the flaky tests article.
Change fail rate is in the table as context, not as a vendor score. The DevOps Research and Assessment program (a research program run by Google Cloud on software delivery performance, not the EU regulation with the same initials) defines it as the ratio of deployments that require immediate intervention following a deployment ev-content-qaaudit-002confidence A. The same page defines deployment rework rate as the ratio of deployments that are unplanned but happen as a result of an incident in production ev-content-qametrics-005confidence A. A rising change fail rate with a flat leakage rate can point at something the agreed tests were not meant to catch, such as configuration or infrastructure.
A worked computation, and why the date matters
The defect detection percentage changes after the release it describes, so a report needs a computation date. The counts in this example are invented to show the arithmetic and describe no vendor.
Release R has 36 in-scope defects found before release. On release day nothing has been reported from production, and the formula gives 36 / (36 + 0) = 1.00. Four in-scope production defects arrive over the next weeks, and the same release now computes to 36 / (36 + 4) = 0.90. Neither figure is a mistake. The first one was computed before its denominator was complete.
The joint review then finds that an agreed test should have caught two of the four. Leakage for the release is 2 / (2 + 36), or about 0.05. The other two escaped defects stay in the escaped count, where they say something about test design, and out of the leakage figure. The two rates do not add up to one, because they count different escaped defects.
Two rules follow. First, fix a maturation period, the same for every release, and mark any younger release as provisional. Second, print the raw counts beside every rate. With a fifth escaped defect in the example, detection falls from 36 / 40 to 36 / 41, and a reader who sees only the rate cannot tell that one report moved it.
Severity needs the same care. If the vendor's severity scale differs from the buyer's, map the two before the window opens, and compute every severity filter on the buyer's field. A remapping halfway through the window makes every filtered rate in it unusable.
Numbers that mislead once a vendor is judged on them
A count of activity can rise with effort whether or not the testing got better. The table is this site's judgment: it pairs each such number with the behavior it can reward and a replacement computation, which is also a working definition.
| Number in the report | Behavior it can reward | Compute instead | Source |
|---|---|---|---|
| Test cases executed | Splitting cases, rerunning stable ones | Regression turnaround with the scope list attached | |
| Defects raised | Splitting one fault into several reports, filing cosmetic faults | Defect detection percentage by severity, with the rejection rate | |
| Pass rate | Keeping cases that always pass, quarantining the rest | Count of failures by cause: product, test code and data, environment and pipeline, outside service | |
| Code coverage | Executing lines without checking outcomes | Coverage of agreed risks and requirements, with code coverage as a map of untested areas | ev-content-qametrics-003confidence A |
| Share of tests automated | Automating trivial cases to raise the count | Regression automation coverage, each case weighted by the manual hours it used to take | |
| Average time to verify a fix | Closing easy fixes fast while hard ones wait | Median and 90th percentile, per severity | |
| Hours billed, or their share of available hours | Filling time | Cycle time and turnaround for the agreed scope | |
| Defects per tester | Avoiding stable areas and pair work | Nothing per person; aggregate by release and suite |
Code coverage has limits that the syllabus states directly. Its statement coverage (the share of executable statements that the tests ran) divides statements exercised by the total number of executable statements; 100% of it does not mean that all the decision logic was tested, and exercising a statement may not detect data-dependent defects ev-content-qametrics-003confidence A. The syllabus says branch coverage (the share of possible transfers of control in the code, such as each side of a decision, that the tests ran) subsumes statement coverage, yet exercising a branch may not detect defects that need a specific path ev-content-qametrics-004confidence A. In an outsourced setup there is a second problem: where most of the measured coverage comes from unit tests written by the buyer's developers, the figure can rise or fall without the vendor touching anything.
The automated share needs a definition before it can mislead anyone, because two teams can count one test case differently. The question set for a request for proposal (the document a buyer sends to vendors to obtain comparable bids) in the article on questions for Polish vendors shows how to pin that down before signature.
Pass rate fails in a third way: it blends causes. A run with a low pass rate because the environment lost its database and a run with a low pass rate because checkout is broken show the same figure. A cause label on each failure, set at triage and visible to both sides, turns the figure into one count per cause. The four classes above are a coarser grouping of the causes in the flaky tests article's ownership matrix.
Reading the set together, month by month
A small monthly set is enough: escaped defects, detection percentage, leakage, regression turnaround, flaky rate and rejection rate. The review reads them in pairs that pull against each other. Turnaround is read with leakage and not-run share, because a shorter cycle can come from skipped checks. Rejection rate is read with detection percentage, because a team can lower rejections by reporting only obvious faults; only accepted defects count in the detection numerator, so invalid reports do not raise it. Automation coverage is read with flaky rate and maintenance share, because coverage added without upkeep can return as noise.
The DevOps Research and Assessment program's guidance supports the pairing for its own delivery metrics. It names setting metrics as a goal as a pitfall, stating that ignoring Goodhart's law (a measure that becomes a target stops being a good measure) and making broad statements about targets increases the likelihood that teams will try to game the metrics ev-content-qametrics-006confidence A. It names having a single metric as another pitfall and advises several, some in tension with each other ev-content-qametrics-006confidence A. It also says the goal is to improve a team's performance over time, not to compete against other teams, and that comparing vastly different applications can be misleading ev-content-qametrics-007confidence A.
This site extends that last point to a buyer with two vendors, or with one vendor beside an in-house team. Detection percentage for a payment service and for a content site can differ because the products differ. Compare each team with its own earlier windows, and compare two teams only on the same component in the same weeks.
A monthly review can stay short if the order is fixed. Read provisional and matured releases separately, then the pairs, then the raw counts behind any rate that moved, then the list of definition changes since the last review. A definition change closes the old series: the chart starts again, and the old and new values are never joined by one line. Performance results follow the same rule, and the performance testing engagement article shows the run record that keeps them comparable.
Capacity is the question these metrics do not answer. Whether the team is large enough for the release rhythm needs regression hours and release frequency, which the release cadence article works through.