Test strategy and audit

QA metrics that support decisions—and those that mislead without context

QA metrics should help a team decide where it is losing time and where users face the greatest risk. A test count, defect count or pass rate cannot show this on its own. A useful view therefore combines production outcomes, feedback speed and the health of the test suite.

Why a green dashboard can hide a problem

A team can have thousands of automated tests and a 99% pass rate, yet one of the failing tests may cover payment or sign-in. Another team may report many defects even though most have little impact and a critical defect escaped into production. The numbers are not wrong. Without context, they answer a different question from the one the business needs to resolve.

The same problem appears when a metric becomes the goal. When a team is assessed by the number of tests it writes, simple checks naturally multiply. When it must reach a prescribed code-coverage percentage, it can add tests that execute lines without verifying important behaviour. The metric then improves faster than confidence in the release.

Start with the outcome for users

First, observe what happens after deployment. These measures show whether testing and the wider delivery process protect important functions:

DORA now uses five software-delivery metrics and groups them into throughput and instability. They do not replace QA metrics, but they give them business context: quality should not merely reduce defects. It should enable changes to be delivered safely.

Measure the time to a trustworthy result

A pipeline that turns green only after two hours provides late feedback. An average can hide slow runs, so it is useful to track both the median and a higher percentile such as p95: the time within which 95% of runs finish. Include queueing, environment preparation and test execution in the measurement.

Practical measures include:

These measures reveal whether feedback is being delayed by too many end-to-end tests, slow data setup or insufficient capacity. The test pyramid then becomes more than a diagram: it helps move suitable checks to a faster layer.

Track the health of the automated suite

A test suite can grow while becoming less trustworthy. It therefore needs operational measures of its own:

Instability needs history, not an impression from the latest execution. Our guide to measuring flaky tests describes a practical approach.

Numbers that distort the picture without context

The number of tests says nothing about the risks they cover. Ten precise checks of a critical calculation may be more valuable than hundreds of repetitive UI scenarios.

The test pass rate mixes critical and minor checks. Always pair it with failed critical journeys, skipped tests and known false alarms.

Code coverage shows which code a test executed, not whether it asserted the right outcome. The Google Testing Blog notes that a high percentage does not guarantee high-quality tests. Coverage is most useful for locating untested areas, not as standalone evidence that a release is ready.

Defects found per tester can encourage people to split findings and compete for easy defects. It does not capture the contribution of those who prevent problems. Quality is an outcome of product, engineering, operations and QA working together, not an individual scoring contest.

Automation percentage has no universal target. Some scenarios are cheaper and more informative when left to a person. What matters is whether automation shortens feedback and protects recurring risks. It helps to identify tests that are not worth automating.

A small dashboard is more useful than dozens of charts

An initial selection could include six views: critical production defects, change fail rate, failed deployment recovery time, p95 feedback time, flaky rate and long-skipped critical tests. For each one, agree on its definition, data source, owner and the decision it is supposed to trigger.

Compare the trend of one product over time. Ranking teams without accounting for different architectures, risks and release frequencies invites the wrong conclusions. A worsening metric should lead to a question and a specific intervention. If it merely glows on a screen, it adds no value.

Agree on exactly what you count

A metric’s name is insufficient. Its definition needs to specify the product, period, unit, inclusion rules and data source. ISTQB CTFL, section 5.3 distinguishes test progress, product quality, defects, risks, coverage and costs. One percentage cannot replace all these views.

Measure Question to resolve
Test pass rate Do you divide passed tests by executed tests or by all planned tests? Do you count the first attempt or the result after retries?
Instability Do you count distinct unstable tests or their individual occurrences? Are code, configuration and conditions comparable?
Failed deployments Do you count deployments requiring intervention against all deployments of that product? One incident must not automatically count as several failed deployments.
Feedback time When does measurement start and what counts as a trustworthy result? How will you report cancelled runs and changes that never received a result?

Illustrative example without retries: of twenty planned tests, eighteen pass, one fails and one is skipped. The pass rate among executed tests is 18 / 19, approximately 94.7%. The proportion of planned tests that passed is 18 / 20, or 90%. Both figures are correct, but answer different questions. If the payment test failed, neither replaces a decision about that risk.

Report retries separately. Also retain an “unknown cause” category until a failure has been investigated. Automatically classifying every successful retry as a false alarm could hide instability in the product itself.

Check data collection and comparability

Connect the code change, pipeline run, test results, deployment and any incident using identifiers. Compare a sample of dashboard records with the original reports. Look for duplicate imports, missing runs, incorrect time zones and tests excluded by a filter. When a definition changes, mark the start of a new series or recalculate comparable history.

Show counts alongside each percentage. One failure among five deployments provides different evidence from twenty among a hundred, although both rates are 20%. Treat small samples cautiously. A falling defect count may not indicate improvement if the number of changes also fell or the observation period became shorter.

When measuring feedback time, track runs without a result as well. Silently excluding them could improve p95 without speeding up the process. A trustworthy result can also be red if it correctly identified a product defect. Measuring time until a green result would combine waiting for a check with fixing a defect in one value.

Decide what action the metric should trigger

Choose a specific intervention and check its effect on the same group of checks. If a CI queue delays feedback, address capacity or scheduling. If investigating repeated failures consumes the team’s time, start with a shared cause in tests, data or the environment. Examine rising production defects against changes and risks that were not detected.

After the intervention, assess its costs as well as its benefits. Shortening regression by disabling critical tests is a different outcome from shortening execution while retaining coverage. When expanding automation, also assess maintenance and diagnostic time. At the next review, provide the outcome, remaining limitations and next step. Agree on targets according to the product and risk, rather than a universal percentage.

What you gain

A well-chosen set of metrics shows whether risk to users is falling, whether the team receives feedback in time and whether automated tests remain trustworthy. It also helps distinguish a product problem from a test-suite or pipeline problem. The result is not a universal quality score, but evidence for deciding what to improve first.

Next step

Choose one product and review the last three to six months. List the decisions currently made by intuition alone, then assign one outcome measure and one process measure to each. If a measure has no clear definition or owner, repair the collection method before setting a target. A QA audit can add a broader view of the process and its blind spots.

Related topics

You might also be interested in

Let's clarify where automation has the greatest expected benefit

We will assess your testing process and suggest what to automate, what to keep manual and what to start with.