Red, green, refactor Create a unit tests that fails; Write production code that makes that test pass; Clean up the mess you just made. References The Cycles of TDD Test-driven development