Roy Osherove

View Original

TDD Anti Patterns

James Carr lists a nice bunch of TDD anti patterns. via Jeremy .

Here's one example I run into often:

"The Liar
An entire unit test that passes all of the test cases it has and appears valid, but upon closer inspection it is discovered that it doesn’t really test the intended target at all."