Re:Where TDD Fails
by cheald on Tuesday March 05, 2013 @08:10PM
(#5328661)
This is a big part of the reason that I like BDD over unit-oriented TDD. BDD saves you time overall (once you've gotten over the initial hump), and tends to result in high-level tests that survive a major restructuring of internals. In such a system, mocks (with perhaps the exception of external resource mocks) are usually an indicator that you need to refactor something.
That said, I think that unit tests still have their place - you just have to be careful to not test implementation as much as input/output.
That said, I think that unit tests still have their place - you just have to be careful to not test implementation as much as input/output.