unittest-cpp

Lightweight C++ unit testing framework with minimal dependencies

brewmacoslinux
Try with needOr install directly
Source

About

Unit testing framework for C++

Commands

UnitTest++

Examples

Create and run a basic unit test$ g++ -o test_runner test.cpp -lUnitTest++ && ./test_runner
Compile test file with verbose output$ g++ -o tests mytest.cpp -lUnitTest++ && ./tests -v
Run tests and output results in specific format$ ./test_runner -xml=results.xml