|> The Unit Test Framework > User's guide > Usage variants > Dynamic library|
In the project with large number of test modules the static
library variant of the UTF may cause you to waste a lot of disk space, since the UTF is linked
statically with every test module. The solution is to link with the UTF built into a dynamic library. If you opt
to link a test module with the prebuilt dynamic library, this usage is called the dynamic library variant of the
UTF. This variant requires you to define the flag BOOST_TEST_DYN_LINK
either in a makefile or before the header
The test runner supplied with this variant requires you to implement the test module initialization function that matches the alternative initialization function signature. The UTF provides an ability to automatically generate an empty test module initialization function with correct signature if no custom initialization is required by a test module.
The name of the test module initialization function is not enforced, since the function is passed as an argument to the test runner.