Mocks, Stubs and other test doubles are a common and convenient scapegoat when talking about fragile test suites. But test doubles can be useful guides, highlighting design issues and in our application. By treating them as companions, we can find our way to long-term maintainable designs and effective test suites.
We'll look at specific, common complaints about test doubles and show how these are indications of design issues. Listening to these pains in our tests can be a great way to move from using our tests as verification to seeing our test suite as a design tool.
Coming out of this talk, you'll have a better appreciation for the techniques of isolation testing in effective test-driven design.