4 ms·
A web of mocks is a sign that your design is not clean enough to be easily unit testable. The frustration it causes is a whisper that you need to refactor thing
by oldmanjay 10y ago
A web of mocks is a sign that your design is not clean enough to be easily unit testable. The frustration it causes is a whisper that you need to refactor things, and that refactoring has always ended up making my software far more robust and understandable.
In my experience, most people just throw up their hands and integration test instead of aggressively working the design into shape.