DigiNews

Tech Watch by Johan Denoyer

← Back to articles

Change-Detector Tests Considered Harmful (2015)

Quality: 8/10 Relevance: 9/10

Summary

The article discusses the debate between change-detector tests (which validate implementation details) and behavioral tests. It argues that change-detector tests can give a false sense of safety during refactoring and may obscure real correctness, recommending tests that document intent and verify observable behavior. A simple code example illustrates why testing interactions can be faster but riskier than validating pure behavior.

🚀 Service construit par Johan Denoyer