QuestionQ336

Software Development and Design

Place the steps in the order of the test-driven development cycle.

Drag & Drop
Verify that the new test fails.
Refactor the code.
Write a test.
Ensure that all tests pass.
Write code.
step 1
step 2
step 3
step 4
step 5
Explanation

Test-driven development uses a red-green-refactor loop: write a test and confirm that it fails, implement code to make it pass, verify the suite passes, and then refactor without changing behavior.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!