All About Agile | Agile Development Made Easy


Testing Testing 123 (test driven development)

by Kelly Waters, 14 March 2007 | Agile Testing

XP (eXtreme Programming) advocates Test Driven Development, where test cases are written before the code. Radical, huh?

If you think about it, it makes complete sense. Assuming you are planning to write test cases anyway, it’s no more effort than writing them later. And the big advantage of writing them first?

If you know how you’re going to test it, you write the code to pass first time! Simple really. Simple but inspired.

See also:
10 Key Principles of Agile Development
Principle #9: Testing is integrated throughout the lifecycle

Home



2 Responses to “Testing Testing 123 (test driven development)”

  1. In test driven testing test cases are written before the code. But how it will be tested before writing code.

  2. David Spells says:

    What are the best books and / or seminars that will help me and perhaps a team learn TDD?

Leave a Reply

What is 10 + 7 ?
Please leave these two fields as-is:
Please do this simple sum so I know you are human:)