I am sure you have read this, but for me a couple of weeks ago this was what I needed:
http://martinfowler.com/articles/mocksArentStubs.html
specifically:
The Difference Between Mocks And Stubs
Using mocks when you don’t care if the interaction occurs mean you are writing brittle tests that are not testing what they should be. Stubs are more appropriate in this situation… sometimes I forget and go mock mental. Naughty!
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment