What does the "Red-Green-Refactor" cycle represent in TDD?

  • A color-coded status for the code in TDD, indicating its progress.
  • A visual representation of code quality.
  • The cycle of writing failing tests (Red), making them pass (Green), and then improving the code without changing its behavior (Refactor).
  • The stages a developer goes through when debugging code.
The "Red-Green-Refactor" cycle is fundamental to Test-Driven Development (TDD). It involves writing failing tests (Red), making them pass (Green), and then improving the code without changing its behavior (Refactor). This iterative process ensures code reliability and maintainability.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *