Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is Test Driven Development the same as Test Driven Design?

Tags:

tdd

I'm starting to learn about Test Driven Development. I've read quite a few articles that talk about TDD. Some refer to it as Test Driven Development. Others call it Test Driven Design. Are they the same thing? I get the impression they are the same, but if not, what are the main differences?

like image 571
Netricity Avatar asked Sep 24 '11 11:09

Netricity


2 Answers

Test driven development refers to a practice describing how to write code.

Test driven design makes an additional claim: that following this practice will result in good (overall) design.

like image 166
Mathias Avatar answered Jan 02 '23 05:01

Mathias


There are some of the TDD evangelists adocating that "Test Driven Development" is primarily a design technique, so they renamed it "Test Driven Design" some time ago. But this point of view has been seen very sceptical by others, read for example this former SO post

Does Test Driven Development take the focus from Design?

There is also an interesting german blog entry of Ralf Westphal discussing this topic:

http://ralfw.blogspot.com/2011/07/test-driven-unterstanding.html

(Here's a Google Translation if you don't understand German).

like image 24
Doc Brown Avatar answered Jan 02 '23 04:01

Doc Brown