Intermediate Software Engineering / SDLC / Agile
Q49 / 100

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")

A

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")

Explanation

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.

Progress
49/100