KPIs/metrics that really matter

Most QA reports are full of numbers and still fail to answer the two questions managers actually ask: "how are we progressing?" and "can we ship?". Here are the test metrics that help make those decisions, the vanity metrics to avoid, and how to present them.

Why measure quality: the cost of a bug

The economics behind every QA metric

Over the whole life of a product, most of the cost is spent after the first release: maintenance (corrections, evolutions, adaptations) is usually estimated at 60 to 80% of the total cost, far more than the initial specification, design, implementation and testing.

Life cycle costs of a software product: maintenance around 75%, testing 7%, implementation 5%, design 6%, requirements and specifications 7%

Typical distribution of the life cycle costs of a software product

Not all of this maintenance is about bugs, but the bugs that escape to production are among its most expensive items, because the cost of fixing a bug grows with the time it stays undetected: a misunderstanding caught while reviewing a requirement costs a conversation; the same misunderstanding found in production costs an analysis, a fix, a new test campaign, a new release, and sometimes unhappy customers.

Cost of fixing a bug depending on the phase where it is found: 139 dollars in requirements, 455 in design, 977 in implementation, 7136 in testing, 14102 in maintenance

Cost of fixing a bug depending on the phase where it is found

The exact figures of these classic studies are debated, and they vary a lot from one project to another, but the trend is widely accepted: the earlier a bug is found, the cheaper it is to fix. This is why good QA metrics are not only about counting failed tests:

  • They show where bugs are found (defects found per phase, defect leakage), so the team can find them earlier ("shift left")
  • They justify the investment in reviews, early testing and automated regression testing, run at every build
  • They tell whether the product is ready, before customers find out

What makes a good QA KPI?

Before choosing metrics
  • It supports a decision: if nobody would act differently when the number changes, it is not a KPI
  • It is tied to requirements and risk, not to raw test counts: 1,000 passed tests mean nothing if the critical requirement is not tested
  • It shows a trend: a value alone says little, its evolution over sprints or builds says a lot
  • It is collected automatically: a metric built by hand in a spreadsheet is late, expensive and often wrong

The KPIs/metrics that really matter

For the team, the QA manager and top management

Requirement coverage

The share of requirements having at least one test, and more importantly the share of requirements whose tests passed on the current version. Weighting each requirement by its priority or risk turns it into a "readiness" indicator: see smarter KPIs drive smarter decisions.

Open critical and major bugs

Count and trend of the open bugs by severity. Zero open critical bugs is usually an exit criterion; the trend tells whether you will get there in time.

Bug submission vs resolution trend

Bugs found per period compared with bugs fixed. When the curves cross and the open count goes down steadily, the product is stabilizing.

Defect leakage

The share of bugs found after the release (by customers or in production) compared with those found by the QA team. It is the ultimate measure of the effectiveness of the testing.

Defects found per phase

Where the bugs are found: requirement reviews, unit tests, system tests, acceptance or production. Since a late bug costs much more than an early one (see above), the goal is to see this distribution move earlier release after release.

Test execution progress

Tests run versus planned in the current campaign, with their results. Useful for the team day to day, but always read it together with coverage.

Stability of automated tests

The share of flaky tests (passing and failing on the same code). An automated suite that nobody trusts is not giving any information.

Time to fix

The average time between the submission and the resolution of a bug, by severity. It shows how fast the team reacts, and where the process gets stuck.

Vanity metrics to avoid

They look good and decide nothing
  • Number of test cases written: rewards quantity, encourages duplicates
  • Number of bugs found per tester: rewards cosmetic bugs and creates tension with developers
  • Pass rate alone: 98% passed says nothing if the 2% failing cover the main feature, or if half the requirements have no test
  • Automation rate alone: automating stable but low-value tests raises the number, not the quality
  • Hours spent testing: measures effort, not result

One dashboard per audience

The same data, different questions
  • The team: execution progress of the current campaign, failed tests, flaky tests, bugs assigned to each one
  • The QA manager: coverage by requirement and priority, bug trends, defect leakage of the previous release
  • Top management: readiness for the next release, open critical bugs and their trend, residual risk; a few indicators, updated automatically

The way to report them matters as much as the numbers: see part 2 and part 3 of our white paper series.

KPIs that build themselves

XQual computes coverage, results and bug metrics in real time for every product, requirement, campaign and folder, and comes with dozens of built-in charts. Drag and drop the ones you need onto your own dashboard pages, and group them in a channel that rotates on a meeting-room screen.

DISCOVER CUSTOM DASHBOARDS

See it for yourself

Try XQual for Free and for 30 Days...

TRY IT NOW FOR FREE!