unit testing framework for C++
CppUnit is the C++ port of the famous JUnit framework for unit testing. Test output is in XML or text format for automatic testing and GUI based for supervised tests.
To install cppunit, paste this in macOS terminal after installing MacPorts
sudo port install cppunit