3hv

beautiful code for elegant web sites

  • You are here: 
  • Home
  • Test Driven Development is not about testing

Test Driven Development is not about testing

http://parlezuml.com/blog/?postid=517

People who practice test-driven development are doing design. It’s important - actually, it’s critical - to understand that. If you fall into the trap of thinking that TDD is about unit testing, then you’ll probably miss the point.

Too many teams believe they’re doing TDD, but are actually just writing unit tests for code they’ve already written, or writing one unit test and then writing 500 lines of production code before they move on to the next unit test.

Absolutely. Applications that have unit tests written before the actual code tend to have looser coupling, cleaner design and concentrate purely on what is required (rather than evolutionary dead ends).


Posted on November 14th, 2007 | By: Rahoul Baruah | Filed under Writing Reliable, Bug-Free Code


Leave a Reply

You must be logged in to post a comment.