Summary
In this chapter, we have applied the RGR cycle to our code. We’ve seen how this splits the work into separate tasks, which results in confidence in our test, a rapid path to simple production code, and less time spent to improve the maintainability of our code. We’ve looked at removing code smells from both the production code and the test code. As part of our work in this chapter, we’ve used ideas that help us move ahead and decide what tests we should write next. The techniques in this chapter enable us to write multiple tests and incrementally drive out the detailed logic in our production code.
In the next chapter, we’re going to learn about some object-oriented design ideas known as the SOLID principles, enabling us to use TDD to grow our application still further.