Testing with agents
Review requirement-level tests carefully — they are the only net under AI’s thousands of lines.
Slide 97 — Testing ➞ Dare!
- Highest value: acceptance tests, close to the requirements. Lowest: @Mock unit tests coupled to whatever design the AI happened to choose — don’t review those.
- Review sociable tests: the class with its collaborators, no mock in between. Zoom out until you can discuss the tests with the business.
- Acceptance-test coverage: count only tests a human read, delete the rest — otherwise you “exchange tokens for coverage”.
- harvest the PR’s “Viewed” checkbox as proof a human read it
- Holdout tests hidden from the agent guard pivotal flows.
- Characterization tests: record anonymized production calls and replay them on the refactored code.
- Test shadowing: deploy the new version side by side on the same traffic and compare results, performance, memory and CPU.
See also: Holdout tests · Legacy refactoring · QA agents · Home Source: Responsibly Dimming the Lights in the Software Factory @ Devoxx Belgium, Day 1 (6 Oct 2026) — section Testing (2:14:53)