QA Fundamentals · Middle · Question 20 of 75

What is TDD?

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.

Further reading

Problem with a question

QA Fundamentals · Middle · question 20

Test yourself

Take the QA Fundamentals · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz