Step 23 of 35 · Delivery
Quality and testing strategy
Decide with the team what you test, at which level and where you accept risk. Otherwise quality depends on mood.
Every team says it cares about quality. Few can say what their tests are meant to catch.
Agree a simple shape: many fast tests close to the code, fewer across components, and a handful of end-to-end checks on the paths the business depends on. Decide what a change needs before it merges. Treat a flaky test as a defect, because a suite people rerun until it passes protects nothing. Watch how long the build takes. Slow feedback makes people batch up changes.
Say where you accept risk. A prototype and a payment flow do not deserve the same bar. The failure is a coverage rule with no thought behind it, or no rule at all, with quality left to each engineer's conscience on deadline day.
Try this week
- Write half a page with the team: what kinds of tests you write, what each kind is for, and what must pass before merge.
- Find the three flakiest tests and fix or delete them this week.
Signs you've got it
- A failing build means something is broken, and people stop to fix it.
- Engineers can explain why a given test exists and at which level it sits.
Resources
- articleThe Practical Test Pyramid (opens in a new tab)Ham Vocke
- bookTesting Overview (Software Engineering at Google) (opens in a new tab)Adam Bender
- articleIs High Quality Software Worth the Cost? (opens in a new tab)Martin Fowler
- articleEradicating Non-Determinism in Tests (opens in a new tab)Martin Fowler
- articleJust Say No to More End-to-End Tests (opens in a new tab)Mike Wacker