Minimal

stressed for motivation and achievement

2006-02-10

 

The TDD security blanket

Jack makes a post on the Reiver Games blog that beautifully encapsulates perhaps my biggest concern with test-driven development: TDD: it’s great, up to a point.

Bravo, Jack. It rings so true that I barely even feel the need to read the linked article—but I will.


Comments:
Aaagh - don't let this get out of hand. Michael Bolton and Jack both make important points about the placebo effect of unit tests, but it doesn't make automated testing and TDD wrong.

It's easy to get suckered in by the green lights. I've had it happen to me. I'm learning to put some higher level tests in - to ensure that I am testing closer and closer to the user's view.
 
Mal, Jack: Spot on. It's far too easy to get lulled into a false sense of security. There's a lot more to testing than unit testing. Tests such as usability, system, performance and volume still need to be done. Unit tests are only a small part of testing.
 
Ash, relax. I never said it was wrong. I'm merely concerned that it can produce a false sense of security if you don't keep yourself very firmly in check. All we're saying is it's a tool, not a panacea.
 
I don't think Unit testing is wrong. In fact I think it's so good that I spend my spare time doing it and I'm a strong proponent of it at work - I just think there's a risk of us developers getting a little too complacent.
 
Post a Comment



<< Home

Archives

April 2002   May 2002   June 2002   July 2002   August 2002   September 2002   October 2002   November 2002   December 2002   January 2003   February 2003   March 2003   April 2003   May 2003   June 2003   July 2003   August 2003   September 2003   October 2003   November 2003   December 2003   January 2004   February 2004   March 2004   May 2004   June 2004   July 2004   August 2004   September 2004   October 2004   November 2004   December 2004   January 2005   February 2005   March 2005   April 2005   May 2005   June 2005   July 2005   August 2005   September 2005   October 2005   November 2005   December 2005   January 2006   February 2006   March 2006   April 2006   May 2006   June 2006   July 2006   August 2006   September 2006   October 2006   November 2006   December 2006   January 2007   February 2007  

This page is powered by Blogger. Isn't yours?