Re:Ask YC: Does anybody enjoy unit testing their code?
by mcxx on Thursday June 12, 2008 @07:38AM
(#215839)
I also like test driven development.
6 reasons to develop your tests first: http://www.lispcast.com/drupal/node/6
Re:Ask YC: Does anybody enjoy unit testing their code?
by danw on Thursday June 12, 2008 @11:35AM
(#216010)
Test driven turns unit testing into a game where you're trying to improve your code to get more 'points' (passing tests). It's very fun to do in pair programming with one of you improving the code and the other writing tests to catch any problems.
http://www.extremeprogramming.org/rules/testfirst.html
Since then I really enjoy writing unit tests. It really changed my mindset. Unit testing is more about design rather than testing itself.