Looking for bad tests!

Looking for bad tests!

Originally this post was meant to gather some interesting examples of tests for my GeeCON 2012 talk "Bad tests, good tests". The idea was to present various issues with test code and how to overcome them. It worked pretty well, and the talk was generally approved.

I have my own "database" of bad test code, but I would be very happy to get some more samples. And what will I do with it? Probably use it for my future talks and also for my new (free!) book.

So please, pretty please, if you happen to have some tests which you consider to be ugly, useless, dumb, unreadable, hard to maintain, nasty, hacky, over-engineered, rubbish, complete nonsense and such, then please share them with me! (the best way would be to send me an email). I will be really grateful!

To make it clear. I'm not only interested in some total crap test code. What I'm really looking for is any test code that could be improved.

This used to be my blog. I moved to http://tomek.kaczanowscy.pl long time ago.


Please comment using