Red, Green, Refactor

Red, green, refactor is an approach of test-driven development where the developer writes a failing test (red), writes the implementation to make the test pass (green), and finally adjusts the implementation of the application or test code to be well-factored (refactor).