3 ms·
> 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 te
by revscat 13y ago
> 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.