Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

BOOST_TEST_MODULE

The BOOST_TEST_MODULE macro is used to define the name of the master test suite. If BOOST_TEST_MODULE is defined, it should be defined in exactly one source file. It can be defined to a list of preprocessor tokens or a string literal. If a string literal is used, surrounding quotation marks ("), will not appear in the name of the master test suite.

#define BOOST_TEST_MAIN
#define BOOST_TEST_MODULE "Assertions"
#include <boost/test/unit_test.hpp>

Example Source Code

PrevUpHomeNext