3/28/09

How to get started with test-driven development





Test-driven development is focused on short development iterations

Here is the general process:
  1. Add a test - Developer must completely understand the software requirements
  2. Run all tests- Confirms test harness is functioning and the new test fails (New code has not been written yet)
  3. Write some code -This is meant to be the first pass and will likely improve as the tests are performed
  4. Run the automated tests
  5. Refactor code- Clean it up

4 comments: