Practice free →
HomeSoftware TestingSoftware Testingfundamentals_levels_techniques › Test-driven development (TDD) follows the cycle

Test-driven development (TDD) follows the cycle

ACode first, then tests, then deploy
BDocument, code, test, then refactor
CRefactor first, test, then write code
DRed, green, refactor in tight loops
Answer & Solution
Correct answer: D. Red, green, refactor in tight loops
TDD red-green-refactor: write a failing test (red), write the minimum code to pass (green), refactor with confidence. Drives design from the consumer/test perspective.
Solve this in the app — Software Testing practice & 24k+ MCQs →
Related questions