cxxtest

C++ unit testing framework for writing and running automated tests

brewmacoslinux
Try with needOr install directly
Source

About

C++ unit testing framework similar to JUnit, CppUnit and xUnit

Commands

cxxtestgen

Examples

generate test runner from C++ test file$ cxxtestgen --error-printer tests/MyTest.h -o MyTestRunner.cpp
create test runner with output to stdout$ cxxtestgen --error-printer tests/MyTest.h
generate Perl test runner for test file$ cxxtestgen --perl tests/MyTest.h -o MyTestRunner.pl
run C++ tests with error printer output$ g++ -o test_runner MyTestRunner.cpp && ./test_runner
list available output formatters for test results$ cxxtestgen --help