nerdexam
Cisco

200-901 · Question #230

In the test-driven development model, what is changed after a test fails?

The correct answer is D. code. In test-driven development (TDD), the cycle is: write a failing test → write the minimum code to pass the test → refactor. When a test fails, you modify the CODE (not the test, schedule, or requirements) to make it pass. The test itself defines the desired behavior and should rem

Software Development and Design

Question

In the test-driven development model, what is changed after a test fails?

Options

  • Atest
  • Bschedule
  • Cproject requirements
  • Dcode

How the community answered

(17 responses)
  • A
    6% (1)
  • D
    94% (16)

Explanation

In test-driven development (TDD), the cycle is: write a failing test → write the minimum code to pass the test → refactor. When a test fails, you modify the CODE (not the test, schedule, or requirements) to make it pass. The test itself defines the desired behavior and should remain unchanged unless the requirement changes.

Topics

#Test-driven development (TDD)#Software development process#TDD workflow#Unit testing

Community Discussion

No community discussion yet for this question.

Full 200-901 Practice