Thursday, May 13, 2004



As part of my ongoing self improvement campaign, I am determined to start using test driven development. I just ran my first few JUnit tests in IntelliJ's IDEA and I am giddy with excitement because it works damn well. I am already geeked out by the green bar that is the treat I get for passing each test.

The idea is simple: I figure out what I want my code to do and write a test to see if it is doing it. I write the test before I write the code, so that the first test always fails because my code isn't there yet. But I have the results of a test that tell me exactly what I need to code pass the test.

The book I am using that has won awards and is very well written and comprehensive is David Astel's Test Driven Development, A practical guide
2:02:35 PM    comment []