Unit testing Anti-patterns catalogue

anti-pattern : there must be at least two key elements present to formally distinguish an actual anti-pattern from a simple bad habit, bad practice, or bad idea:

  • Some repeated pattern of action, process or structure that initially appears to be beneficial, but ultimately produces more bad consequences than beneficial results, and
  • A refactored solution that is clearly documented, proven in actual practice and repeatable.

Vote for the TDD anti-pattern that you have seen “in the wild” one time too many.
The blog post by James Carr and Related discussion on testdrivendevelopment yahoogroup

If you’ve found an ‘unnamed’ one.. post ’em too. One post per anti-pattern please to make the votes count for something.

My vested interest is to find the top-n subset so that I can discuss ’em in a lunchbox meet in the near future.

31 Answers
31

Second Class Citizens – test code isn’t as well refactored as production code, containing a lot of duplicated code, making it hard to maintain tests.

Leave a Comment