|
|
About
Exploring Solution Spaces, Keith Ray's blog on Software development and other topics.
Send comments to:
keithray@mac.com
Archives
2003
2004
2005
2006
2007
2008
Subscribe
RSS Exploring Solution Spaces XML
|
|
|
What TDD is Really About
Quoting Dave Astels on Test-Driven Development (aka Behaviour Driven Development):
So if it’s not about testing, what’s it about?
It’s about figuring out what you are trying to do before you run off half-cocked to try to do it. You write a specification that nails down a small aspect of behaviour in a concise, unambiguous, and executable form. It’s that simple. Does that mean you write tests? No. It means you write specifications of what your code will have to do. It means you specify the behaviour of your code ahead of time. But not far ahead of time. In fact, just before you write the code is best because that’s when you have as much information at hand as you will up to that point. Like well done TDD, you work in tiny increments… specifying one small aspect of behaviour at a time, then implementing it.
Brian Marick has been calling this Example-Driven Development.
[/docs]
permanent link
|
|