QA Fundamentals · Middle · Question 20 of 75
What is TDD?
- 1Test the design documents before writing any code
- 2Write a failing test first, make it pass, then refactor
- 3Testers write all tests after developers finish
Show the answer
Correct answer: Write a failing test first, make it pass, then refactor
Explanation
Red, green, refactor: test-driven development produces small, testable units and a test for every behaviour. Testers benefit from the resulting fast safety net.