Home › Software Testing › Software Testing › fundamentals_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.
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