# Testing Is a Strategy, Not a Coverage Number

- Published: 2026-09-18
- Updated: 2026-11-26
- Tags: Continuous Delivery, Books
- URL: https://devtrillo.com/writing/continuous-delivery-3-testing-strategy/

> Part 3 of a series reading _Continuous Delivery_, by Jez Humble and David Farley. Part 1: [Continuous Delivery Is a State, Not a Pipeline](/writing/continuous-delivery-1-a-state-not-a-pipeline/).

[Part 2](/writing/continuous-delivery-2-the-pipeline/) ended at the acceptance stage — the gate that proves your software still does what the business needs. That gate is only as good as the tests behind it. So this part is about the tests.

And it starts with a question that sounds reasonable and is a trap: _how much test coverage do we have?_

Coverage is a number. It tells you which lines got executed while the tests ran. It does not tell you whether the tests are fast, whether they're trustworthy, or whether they'd notice if the product broke. You can hit ninety percent coverage with a suite that takes an hour, flakes twice a day, and still lets a real bug through.

More tests is not a plan. A pile of slow, overlapping tests can leave you _less_ able to ship than a lean suite half its size.

**Testing is a strategy, not a coverage number.**

The strategy is a portfolio. Different kinds of tests buy different things at different prices, and the job is to hold the right mix — automate the boring, repeatable checks so the machine guards against regression, and free your humans for the judgment only humans have.

## The pyramid, not the ice-cream cone

The first decision in the portfolio is shape, and the book has an opinion: a wide base of fast unit tests, a thinner layer of service tests, and a small cap of slow end-to-end tests.[^pyramid]

Most teams build the opposite. Unit tests feel less "real," end-to-end tests feel like proof, so the suite fills up top-heavy — the ice-cream cone. Then they wonder why the build takes forty minutes and fails for reasons nobody can reproduce.

Drag it and watch the trade.

**How the shape of your test suite changes what it costs you**

Three tiers, top to bottom: UI / end-to-end, service / integration, unit. A slider runs from an "ice-cream cone" (slow UI tests dominate) to a "healthy pyramid" (wide base of unit tests); it starts near the healthy pyramid.

| Mix | Feedback time | Flakiness | Confidence / minute |
| --- | --- | --- | --- |
| healthy pyramid | seconds | low | high |
| bulging middle | minutes | creeping up | medium |
| ice-cream cone | many minutes | high — flaky | low |

- healthy pyramid: A wide base of fast unit tests, a thin cap of slow ones. Most failures get caught in seconds, by tests that rarely lie to you — so a green suite means something and you actually run it.
- bulging middle: The middle is bulging. More of your coverage now runs through slow, stateful paths, so feedback drags and the odd flake starts showing up. Trust in the green bar begins to wobble.
- ice-cream cone: The ice-cream cone: most coverage is slow, brittle end-to-end tests. The suite takes forever, fails for reasons that have nothing to do with your change, and eventually nobody believes red or green. Coverage went up; confidence went down.

The shape is not aesthetic. It's economic. A unit test fails in milliseconds and points at one function. An end-to-end test fails in minutes and points at "something, somewhere, in the whole system — or maybe the network." Push your coverage up into the slow tiers and every failure costs more to run and more to diagnose, and the flakiness compounds until the suite is background noise.

> **Note:** A slow suite doesn't just waste time — it quietly changes behavior. When the
> tests take forty minutes, people stop running them before they push. When they
> flake, people learn to re-run instead of investigate. The shape of your suite
> trains the habits of your team.

## Tests point in four directions

Shape tells you how tests behave. It doesn't tell you what they're _for_. For that, the book leans on Brian Marick's testing quadrants — two questions that cut the space into four.[^quadrants]

Is the test **business-facing** (in the language of a user) or **technology-facing** (in the language of a developer)? And does it **support the team** as they build, or **critique the product** as it stands?

<div
  class="thinking-compare"
  aria-label="Brian Marick's four testing quadrants"
>
  <div class="thinking-row thinking-head">
    <span>Supports the team →</span>
    <span>← Critiques the product</span>
  </div>
  <div class="thinking-row">
    <span>
      <strong>Business-facing:</strong> acceptance tests, examples, stories —
      "does it do what we agreed?"
    </span>
    <span>
      <strong>Business-facing:</strong> exploratory testing, usability,
      showcases — "is it actually any good?"
    </span>
  </div>
  <div class="thinking-row">
    <span>
      <strong>Tech-facing:</strong> unit &amp; integration tests — "did we build
      it right?"
    </span>
    <span>
      <strong>Tech-facing:</strong> performance, load, security — "does it hold
      up under stress?"
    </span>
  </div>
</div>

The point of the grid isn't to memorize it. It's to notice that "we have tests" usually means one box — developer unit tests — while three other kinds of confidence go unbought. A coverage number can be high while an entire quadrant is empty. The strategy is deciding, deliberately, how much of each you need.

## Acceptance tests speak the domain

The business-facing, team-supporting box is the one that feeds the pipeline's acceptance stage, and it has a rule worth pulling out.

Write those tests in the language of the domain, not the language of the screen.

A test that says "click the element with id `#submit`, then assert the div with class `.toast` contains 'OK'" is testing your HTML. It breaks the moment someone renames a class, and it never actually said what the software was supposed to _do_. A test that says "when an overdue invoice is processed, a reminder is sent" describes behavior. You can restyle the whole UI, [refactor](/writing/refactoring-is-a-discipline/) the internals, and it still holds — because it was never coupled to the mechanics in the first place.

That decoupling is what lets the same acceptance suite survive years of change. It tests the promise, not the plumbing.

## A flaky suite is worse than none

Here's the part that feels like heresy: a test suite you don't trust is worse than no suite at all.

With no tests, you know you're flying blind, and you act carefully. With a flaky suite, you _think_ you're covered, right up until the red you ignored turns out to be real. Worse, flakiness is contagious — one test that fails randomly teaches the whole team to hit "re-run" instead of "investigate," and now every failure, real or not, gets the same shrug.

> **Tip:** Treat a flaky test as a broken test, today. Quarantine it or fix it — never
> leave it in the suite failing "sometimes." A green bar is only worth something
> if red always means something.

That's why this is a discipline and not a metric. The suite's value isn't the number of tests or the percentage of lines. It's whether, when the bar goes green, you _believe_ it — because that belief is the permission to release.

**Deep dive: Isn't 100% coverage the goal, though?**

No, and chasing it usually makes the suite worse. Coverage measures whether a line ran while tests executed — not whether anything was actually asserted, not whether the test would catch a real regression, not whether it's testing something worth testing. Teams pushing for 100% end up writing brittle tests for trivial getters and setters to move the number, which bloats the suite, slows it down, and adds maintenance for no confidence. Aim coverage at the code where a bug would actually hurt, accept that some lines aren't worth testing, and spend the saved effort keeping the suite fast and trustworthy. The goal was never the number. It was a suite you'd stake a release on.

## So, what is a testing strategy?

It's not a coverage percentage, and it's not "write more tests."

It's a portfolio you shape on purpose: a fast unit base you can run constantly, a thin cap of slow tests you lean on sparingly, acceptance tests written in the domain so they outlive the code, and a suite kept trustworthy enough that green is a promise you'd bet a release on. It's also knowing which quadrants you've left empty, and choosing that on purpose instead of by accident.

Get that right and the acceptance stage from Part 2 becomes something you trust in seconds, not something you hope about for forty minutes.

Next in the series: Part 4 — configuration and environments, and why "works on my machine" is a bug in the environment, not an excuse.

[^pyramid]: Martin Fowler, [TestPyramid](https://martinfowler.com/bliki/TestPyramid.html) — a wide base of fast, isolated unit tests and a small number of slow, broad end-to-end tests. The inverted shape (the "ice-cream cone") is the common anti-pattern.

[^quadrants]: Brian Marick's testing quadrants — business-facing vs technology-facing, and supporting-the-team vs critiquing-the-product — are used throughout the agile testing literature and in Humble & Farley, [_Continuous Delivery_](https://continuousdelivery.com/), as a way to reason about which kinds of tests you actually need.
