Teardown

This chapter provided you with techniques for breaking collaborator dependencies when test-driving. You’ll want to review the documentation for your mock tool to fully understand its additional features and nuances. Otherwise, you now have a basic understanding of the core TDD mechanisms you’ll need to build a production system.

That doesn’t mean you can stop reading, particularly not if you want to succeed in the long run. You’re just starting to get to the good stuff. Now that you can test-drive all your code, how can you take advantage of it so that your design stays clean and simple? And how can you ensure that your tests, too, stay clean and simple? The next two chapters focus on improving the design of both your production code ...

Get Modern C++ Programming with Test-Driven Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.