DE

You can guess that testing pays off. Or calculate it.

The later a defect is found, the more expensive it is to fix. You can save up to 90% if you clear out defects early in the process.

What do bugs in your release cost?

What can testing do for you?

Below is a (heavily simplified) calculation of how much of your development cost you could actually save with software QA.

Personally, I find the question “testing or not” answered by gut feeling far too often, instead of honestly considering the following:

  • Testing is active risk management.
  • Quality assurance is an essential part of clean craftsmanship.
  • Finding defects earlier measurably saves money.
  • Not testing means cutting corners.

Starting point

What one developer day costs your company, including payroll overhead. A rule of thumb: annual gross salary divided by about 200 working days, plus 20 to 30 percent overhead.
€
How many defects per month only show up for customers or in the live system today, i.e. without extra measures. Count production-related bug tickets from the last three months and divide by three.
bugs
Average person-days for a bug found in production: analysis, fix, review, test, hotfix release. Use the average, not the worst case.
days

Which measures do you already use?

Specification
  • Defects in requirements and acceptance criteria are found before any code exists. This is the cheapest phase. Rule of thumb: this measure catches about 25% of the bugs still present at this phase (not of the total).
  • Open questions, missing acceptance criteria and misunderstandings surface before anyone writes code. Rule of thumb: this measure catches about 25% of the bugs still present at this phase (not of the total).
Development
  • Finds defects without running the software, e.g. type errors, unsafe patterns, dead code. Rule of thumb: this measure catches about 25% of the bugs still present at this phase (not of the total).
  • Finds defects in the logic of single building blocks right during development, fast and without a test environment. Rule of thumb: this measure catches about 35% of the bugs still present at this phase (not of the total).
  • Finds defects at the seams, e.g. between services, database and APIs, that single unit tests do not see. Rule of thumb: this measure catches about 35% of the bugs still present at this phase (not of the total).
  • A short check of the most important functions right after deployment finds gross defects before further tests spend time on them. Rule of thumb: this measure catches about 35% of the bugs still present at this phase (not of the total).
Test & release
  • Automated end-to-end tests run before the release and find regressions before customers do. Rule of thumb: this measure catches about 50% of the bugs still present at this phase (not of the total).
  • QA or the business side check that the software does the right thing. Catches defects technical tests miss. Rule of thumb: this measure catches about 50% of the bugs still present at this phase (not of the total).

Your result

Bugs and cost per phase
PhaseCatch rateBugsCostCost per bug
Specification0%0€0€1.10
Development0%0€0€11
Test & release0%0€0€110
Production100%25€27,500€1,100
Current cost€27,500per month with your selected measures
Baseline€27,500per month without any measure
Your realised savings€0per month through your selected measures
Possible further savings€26,330per month if you use all measures

Things to keep in mind

The calculation above is deliberately simple. All values are estimates based on the rule of 10 and typical catch rates per measure, each applied to the remaining bugs. The following is not included, because the calculation would quickly become very complex:

  • The effort for the measures themselves, i.e. setup and ongoing operation
  • Customer trust and churn
  • Reputation damage
  • Support effort
  • Opportunity cost of firefighting

These factors usually raise the real cost of production bugs considerably. The real savings are therefore often higher than the calculator shows.

Let’s put these measures into practice – I’ll show you how: