3
The TDD Process
The first two chapters have introduced you to the TDD process by showing you the steps involved. You have seen build failures when declaring multiple tests. You have seen what can happen when we get ahead of ourselves and write code that isn’t needed yet. That was a small example with a test result, but it still showed how easy it is to sometimes let code slip into a project before there are tests to support the code. And you also saw how the code starts out with a simple or partial implementation, gets working first, and then is enhanced.
We will cover the following topics in this chapter:
- How build failures come first and should be seen as part of the process
- Why you should write only enough code to pass your tests
- How to ...
Get Test-Driven Development with C++ 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.