I am developing a DLL in C++ and want to perform unit testing of that DLL using the Boost Test Libraries.
I found here that test_runner.exe
can be used.
How to obtain test_runner.exe
?
Are there any ways or locations which does not require to build boost
?
I installed boost 1.47 from BoostPro download page, but there is no test_runner.exe there.
Thanks.
You can build one yourself from sources. It has no extra dependencies, only Boost.Test itself.
You can bootstrap boost installation
Download source of boost, unzip and run bootstrap.bat
.
Then build bjam
and run build command under libs/test/tools/test_runner
.
bjam.exe
should exist in unpacked distribution.
Switch current folder to libs/test/tools/test_runner
and run bjam.exe
from it with required parameters (platform, configuration, etc...).
Output console_test_runner.exe
will be available in bin.v2\libs\test\tools\console_test_runner