Writing auto tests is good for your project. However, managing test cases is hard when the project is big and many developers work on it. In this recipe, we'll take a look at how to run individual tests and how to combine multiple test cases in a single module.
Let's pretend that two developers are testing the foo
structure declared in the foo.hpp
header and we wish to give them separate source files to write tests to. In that case, both developers won't bother each other and may work in parallel. However, the default test run must execute tests of both developers.
Basic knowledge of C++ is required for this recipe. This recipe partially reuses code from the previous recipe and it also requires the BOOST_TEST_DYN_LINK
macro defined and linkage against the boost_unit_test_framework
and boost_system
libraries.