← Everyone's take

TAKES · Greg answers

When should we add tests?

When should we add tests?“When we know which version we're keeping.”Greg Hollis, The Hedger

💡 WHY GREG IS RIGHT

While two implementations compete, full suites for both double the cost of an experiment whose loser gets deleted. Comparing their outputs against each other or against production traffic already signals correctness. Writing the suite after choosing pins the interface the team will actually maintain.

✅ RIGHT WHEN

Two candidate implementations are being compared, with a decision date already set.

🚩 TOO FAR WHEN

Both versions have been temporary for four years and neither has a single test.

See all 12Greg's profile