The Refactor Stage: Cleaning Up the Code

Learn how to implement the refactor stage of the TDD process.

The process of refactoring involves optimizing the design of the code without changing its behavior. In TDD, this is the final stage of the process. We conduct it when we already have the tests written and some quick solutions implemented to make the relevant tests pass.

Get hands-on with 1200+ tech skills courses.