Testing Testing 123 (test driven development)
This content is syndicated from by Kelly Waters. To view the original post in full, click here.
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.
10 Key Principles of Agile Development
Principle #9: Testing is integrated throughout the lifecycle