Contract test
One suite of tests runs against both a fake and the real implementation, so the fake the other tests use is known to behave like the real one.
Named by J. B. Rainsberger.
Themes: Tests and verification
With an agent: Computational sensor, in Böckeler's grid.
Sources
- Abstract Test Cases, 20 Years Later, J. B. Rainsberger, 2021, The Code Whisperer.
- ContractTest, Martin Fowler, 2011, martinfowler.com.