Description
Test-driven development (TDD) is an agile technique where a developer will write a basic test case to verify the desired functionality, knowing that it will fail, and then writes the minimum amount of code to pass the test. The developer will then enhance the code to ensure that it meets acceptable performance and coding standards and principles.
Test-driven development brings the most value when used with short sprints, where rapid experimentation is possible.
Typical Roles
Agile Team
Desired Behaviors
- 1.
Incrementally create test cases and related software that fails initially, but eventually passes each test case. An automated test framework is normally used to encourage efficiency.
- 2.
If manual testing is used, save test cases for the future to ensure that changes to the software do not cause unintended defects.
- 3.
Use the test case inventory to evaluate requirements changes.