Mastering the Cycle of Code Perfection

Report a typo

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

Put the items in the correct order
Write a failing test
Run the test and see it fail
Run the test and see it pass
Repeat the cycle for next feature
Refactor the code if needed
Write code to make the test pass

Create a free account to access the full topic