cpputest

C/C++ unit testing framework with xUnit-style test organization

brewmacoslinux
Try with needOr install directly
Source

About

C /C++ based unit xUnit test framework

Commands

cpputest

Examples

Create and run a basic C++ unit test$ cpputest MyTest.cpp -o MyTest && ./MyTest
Compile multiple test files with the framework$ cpputest test1.cpp test2.cpp -I./include -L./lib -o test_suite
Run tests with verbose output$ cpputest MyTest.cpp -o MyTest && ./MyTest -v