This unit test project is based on the boost unit test framework. Below are the simple steps to add new unit test, you could find more usage from the boost unit test document.
-
Create new BOOST_AUTO_TEST_SUITE for each class in an individual cpp file
-
Add BOOST_AUTO_TEST_CASE for each test case in the BOOST_AUTO_TEST_SUITE
-
Update the CMakeLists.txt file to add the new cpp file to the test project