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
Which measures do you already use?
- 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).
- 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).
- 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
| Phase | Catch rate | Bugs | Cost | Cost per bug |
|---|---|---|---|---|
| Specification | 0% | 0 | €0 | €1.10 |
| Development | 0% | 0 | €0 | €11 |
| Test & release | 0% | 0 | €0 | €110 |
| Production | 100% | 25 | €27,500 | €1,100 |
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: