Monday, December 18, 2006

TDD abstinence

- Yes, I admit it, I am a TDD-junkie. I have become addicted to TDD. If you have once tried it, you are stuck!

After having used test-driven development for the last projects, I find it really hard to live without the tests. Recently I started to work for a client with the job description "Do Java development, integrating an ERP system". There was very few unit tests in the codebase, and like a drug-addict I felt severe abstinence, feeling restless, and started to sweat heavily, until I wrote my first unit tests, set up test coverage, and starting to feel that satisfying feeling of control. After a week I started to preach TDD, and last week they wanted me to set up Continuous Integration, and teach the development team the basics about TDD and mock testing.
So like a drug dealer I sold them TDD, and soon they will be as addicted as I am. And it will be my fault... But it feels good!