Question · Python course · Module 7: Testing and DevOps

TDD

What is the correct order of steps in TDD (Test-Driven Development)?

Answer options

  • Code → Test → Deploy
  • Green → Red → Refactor
  • Red (test fails) → Green (code passes) → Refactor
  • Refactor → Test → Code

You can check the correct answer by solving this task in the CodeWorlds game.