Avoiding mocks, Part I
Mocks often result in brittle tests that simulate unrealistic scenarios, replacing too much of the actual system and providing a false sense of safety.
Published in
7 min readJan 3, 2024
The solution combines testing vertical slices, relying on dogfooding, and using fakes. Let’s see why and how.