QuestionQ605

Software Development and Design

What does completion of the green phase in the test-driven development cycle indicate?

  • A The unit test of the new code has written functions as intended.
  • B The new code is readable and maintainable.
  • C The new code meets the test requirements.
  • D The new code caused a break in the existing functionality.
Explanation

The green phase means the newly implemented code makes the relevant automated test pass, satisfying the test’s requirements. Code quality improvements such as readability and maintainability are addressed in the refactor phase.

Learn more

Community Discussion

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