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.
Keep practising Fundamentals Levels Techniques
Browse all Fundamentals Levels Techniques questions for Software Testing, or explore more Software Testing topics.
Related questions
Exit criteria for a test phase typically includeIn Agile, the tester's role is BEST described asSelenium is BEST described asWhich is a recognised BENEFIT of test automation?Risk-based testing prioritises test effort byA defect lifecycle typically begins with statusA test plan typically describesBranch (decision) coverage requires