Re:Why Most Unit Testing is Waste [pdf]
by revscat on Thursday March 06, 2014 @11:28AM
(#7354684)
> It does introduce a dependency that has to be changed along with the code, but is often helpful.
And that's the rub. Mocks are useful. They help you write tests that are more robust, without having to resort to massive and complex @Befores. At the same time, though, they have an effect that is more negative than positive on the ability to change the code under test.
And that's the rub. Mocks are useful. They help you write tests that are more robust, without having to resort to massive and complex @Befores. At the same time, though, they have an effect that is more negative than positive on the ability to change the code under test.