Start using Test Driven Development today

Tags
Tagsprogramming, testing
Posted
Fri 18 Jan, 2008
Comments
0

Start using Test Driven Development today is a post I wrote over on my company’s blog. It covers how TDD has improved my work since I started Helicoid Limited, and how you can start using TDD right now.

  1. Learn how to write basic tests in your chosen language – don’t worry about fully learning the test framework, start by copying examples
  2. When adding a new feature, start by creating tests first. Write code to satisfy these tests
  3. Refactor old code to work well with automated tests
  4. Write test data carefully and patiently, using this as a design technique for exploring the quality of your data modelling
  5. Find a mocking library so you can write encapsulated tests that don’t require external resources
  6. Find a tool for producing coverage reports in your chosen language
  7. Investigate automated testing triggered when deploying/releasing code

Security Code