• Notice regarding image hosts and attachments. See here.

TDD Kata

Caporegime
Joined
18 Oct 2002
Posts
29,517
Location
Back in East London
We've begun using TDD Kata in our workplace to sharpen and hone our TDD minds. :)

It's a worthwhile exercise to do, to turn good practice into habit, so I'm posting Roy Osherove's example here to spread the word. :)

http://osherove.com/tdd-kata-1/

Note that it isn't a challenge to get as far into it as you can (or even finish it), it is a practice to employ the TDD mantra as a habit. :)
 
I used something similar to get used to the CodeRush short cuts.

Osherove's book is a definitely worth reading for unit test beginners. One bit of advice that really helped was, there is no such thing as a complex implementation just one that hasn't been decomposed enough :)
 
All tests passed, go me :o.

It's a pretty good hint that I should really write unit tests for my code in future. It's a million times easier than just testing a function locally once and expecting it to keep working forever, like I've been guilty of in the past :).
 
Back
Top Bottom