Wednesday, July 2, 2008

Mocks v Stubs

I am sure you have read this, but for me a couple of weeks ago this was what I needed:


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!

No comments: