Chapter 2 of 7

It depends on what's at stake

The right amount of testing isn't a number. It depends on what's at stake.

Sooner or later, someone asks a tester: “How much testing does this need?” And the tester says: “It depends.”

It can sound like a dodge. It isn’t. It’s the most honest answer there is, because the same amount of testing can be far too much in one place and dangerously little in another.

What’s at stake

Testers say that testing is context dependent. In plain words, there’s no single right way to test. How much you test, and how carefully, should depend on what’s at stake: the domain and its rules, how often you release, how connected the system is, and who uses it.

Most teams judge the stakes in two ways. Risk: how likely is it that something goes wrong, and how bad would it be? A wrong decimal in a menu price is embarrassing; the same wrong decimal in a payment is serious. And value: how much does this matter to the people who use it, and to the business?

Both are right. But in my experience, there’s a part of the price that’s easy to forget.

The price nobody puts in the plan

I’ve tested in places that work very differently. The clearest contrast is between a system that stands mostly on its own, and systems that are tied to many others.

A large consumer app I worked on released several times a week. It had few dependencies on other systems, so everything felt streamlined. If a problem slipped through, a fix could go out quickly, with few people involved and little risk that the fix itself would break something else.

A customer portal and a banking system were the opposite. Both were closely tied to other systems and to those systems’ release schedules. A fix could still go out within days. But getting there was the expensive part: more people had to be involved, decision makers had to agree, and the fix itself carried risk, because it touched things other systems depended on.

So the same kind of bug had a very different price depending on where it lived. Not because one place cared more than the other, but because the cost of putting things right was so different.

A fix has a price too

So when you weigh what’s at stake, add one more question to risk and value: what does it cost to put right? Not just the time, but how many people have to be involved, who has to approve it, and how risky the fix itself is.

Where a fix is cheap, a team can release, watch and correct. Where every fix is a small project of its own, more of the testing has to happen before release.

There’s a limit, though. Release, watch and correct only works when the damage is small and can be undone. A quick fix doesn’t bring back leaked data, money sent to the wrong place, or an account someone else has taken over. Where the harm is permanent, test before release, however cheap the fix.

The common mistake is to test everything the same way: heavy ceremony on things where a mistake costs little, or a quick once-over on things where a fix means a week of meetings.

Matching the effort to the stakes

So, how much testing does this need? Enough that the risk you’re left with is one you’ve chosen to accept. To find that point, weigh four things:

  • How likely is it to go wrong? New, complex or often-changed areas are the usual suspects.
  • If it goes wrong, who is affected, and how badly? Money, safety, trust, the law, or just a moment of annoyance.
  • How much does it matter? The features people depend on most deserve the most care.
  • What will it take to put right? How many people, which approvals, and what else the fix might disturb.

Where the answers are serious, test thoroughly and early. Where they’re small, go lighter and move faster. Where they point in different directions, talk about it.

And say the choice out loud. “We’re testing this lightly because a mistake is cheap to fix” is a perfectly good decision. The problems start when nobody decided at all.

Five questions that work on anything

  1. 1. What problem are we solving, and for whom?

    If the answer is fuzzy, everything after it will be too.

  2. 2. How will we know it works?

    Agree what “right” looks like before anyone builds it.

  3. 3. (in focus) What could go wrong?

    Errors, limits, odd inputs and unusual users, not just the normal case.

  4. 4. What are we assuming?

    What everyone takes for granted is exactly what nobody checks.

  5. 5. (in focus) Does it fit with what’s already there?

    The system, the business rules, earlier decisions, the law.

Here, question 5 does the most work. The more a change touches other systems, rules and teams, the more any fix will cost, and the more testing it deserves up front. Question 3 sets the other half of the price: how bad is it if this goes wrong?

Every bug has two prices: what it breaks, and what it takes to fix.