Teardown

The landscape of C++ unit testing tools continues to change. Rather than summarize the existing tools at the time of publication, the goal of this appendix is to help you define the criteria by which you choose your team’s unit testing tool. You can find a number of sites that provide a comparison of the available tools. One detailed article that compares a few of the tools is http://gamesfromwithin.com/exploring-the-c-unit-testing-framework-jungle, but note that it is from 2010 and discusses neither CppUTest nor Google Test.

Your choice for an appropriate C++ unit testing tool is unlikely to be dead wrong. Your tool will probably change for the better over time, and even if it doesn’t, you’ll usually have the opportunity to customize ...

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.