over-mocking

Replacing so many collaborators with mocks that tests only check the script the test writer invented, not real behaviour.

In more detail

The suite goes green while the system is broken, because each mock returns exactly what its test told it to. Prefer observable results over rehearsed call sequences, and let a fake or a real dependency check the contract.

Related terms

Taught in

References