What is "test-driven development" (TDD), and what is its basic workflow?
Correct! Well done.
Incorrect.
The correct answer is A) A development approach where developers write a failing automated test for a desired behavior first, then write the minimum code needed to pass the test, and finally refactor the code while keeping the test passing (often called "red-green-refactor")
Correct Answer
A development approach where developers write a failing automated test for a desired behavior first, then write the minimum code needed to pass the test, and finally refactor the code while keeping the test passing (often called "red-green-refactor")
The red-green-refactor cycle of TDD encourages writing only the code necessary to satisfy tests, which can lead to better-designed, more testable code and a comprehensive automated test suite as a byproduct.