Order the steps
Put one TDD cycle in order.
- Run it and watch it fail
- Refactor while everything stays green
- Run all the tests
- Write the minimum code to make it pass
- Write a test for the next small behaviour
Hint 1 of 1
Red, green, refactor.
Choose an answer, then open Show answer below to check it.
Show answer
Answer: E A D C B
- Write a test for the next small behaviour Start with the behaviour you want.
- Run it and watch it fail A failing test proves it can catch the problem.
- Write the minimum code to make it pass Just enough code keeps the design honest.
- Run all the tests Make sure nothing else broke.
- Refactor while everything stays green Clean up with the tests as a safety net.