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."
Published Sunday, January 20, 2008 7:54 AM by RoyOsherove

Comments

Sunday, January 20, 2008 9:11 AM by Colin Jack

# re: TDD Anti Patterns

Very easy to get this problem if you do a lot of interaction testing because it isn't necessarily obvious if no test actually verifies that the real behavior (end result for example) is correct.

Friday, January 25, 2008 10:26 PM by The Disco Blog » Blog Archive » The weekly bag– Jan 25

# The Disco Blog » Blog Archive » The weekly bag– Jan 25

Pingback from  The Disco Blog  » Blog Archive   » The weekly bag– Jan 25