200-901 · Question #230
In the test-driven development model, what is changed after a test fails?
The correct answer is D. code. In test-driven development (TDD), the cycle is: write a failing test → write the minimum code to pass the test → refactor. When a test fails, you modify the CODE (not the test, schedule, or requirements) to make it pass. The test itself defines the desired behavior and should rem
Question
In the test-driven development model, what is changed after a test fails?
Options
- Atest
- Bschedule
- Cproject requirements
- Dcode
How the community answered
(17 responses)- A6% (1)
- D94% (16)
Explanation
In test-driven development (TDD), the cycle is: write a failing test → write the minimum code to pass the test → refactor. When a test fails, you modify the CODE (not the test, schedule, or requirements) to make it pass. The test itself defines the desired behavior and should remain unchanged unless the requirement changes.
Topics
Community Discussion
No community discussion yet for this question.