Robert Smyth's BlogTest Driven Development (TDD) |
||
|
Test driven development (TDD) is a process for writing code. It involves writing the tests first and then use the tests to guide what code is required. When the tests pass, the coding is completed. It can speed up development and help simplify the resulting code. TDD used with code refactoring is a powerful way of writing code.
As the tests are the requirements in code it is always possible to write the test first. If not, then you do not know what your coding! If a test is written prior to the code (one part of TDD) then:
There are no downsides to writing tests before writing the code, and there are definite potential benefits. If sceptical of TDD, start by just writing your tests first. After a short while you will find yourself naturally starting to use some TDD.
Links to TDD information:
Others of interest: Interested in how to automate customer acceptance tests then checkout FIT.
Mail lists:
|
|
|
Last updated April 2005, Email: robsmyth at bigpond.net.au
|
||