Test-Driven Development (TDD) is a method of developing code along with automated tests. Using this approach, you
1.write one or more automated tests that exercises a feature
2.write enough code so that the feature passes the automated tests
3.run the tests until all tests pass
4.clean up the code, while continuing to run tests to insure that a change does not break the code
The Unit Test Framework is designed to support TDD. You can create test cases and execute them in Studio to exercise code in the Guidewire applications. You can use Guidewire data builder classes to create test data.
TDD can contribute more to a reliable implementation than any other quality practice. TDD can follow several patterns, including:
•full coverage component testing
•regression testing
Kent Beck's book [Beck2003] provides detailed examples of test-driven development.