CppUTest

CppUTest is another C++ unit testing framework that you might choose over Google Test/Google Mock. It offers many comparable features, plus provides a built-in memory leak detector. You can see more examples of CppUTest in Test Driven Development for Embedded C [Gre10] by James Grenning.

Installing CppUTest

(Note: These instructions apply to CppUTest version 3.3. The newest version, 3.4, incorporates a number of changes, but was released just prior to my final deadline for major changes, preventing me from incorporating use of it into this book.)

You can find the project home for CppUTest at http://www.cpputest.org/, and you can find downloads at http://cpputest.github.io/cpputest/. Download the appropriate file and unpack, perhaps into ...

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.