Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

BOOST_AUTO_TEST_CASE

BOOST_AUTO_TEST_CASE(name) creates a test case class, a test case invocation function, a test case unique identifier, registers the invocation function as a test case and begins the definition of the test method on the test class. The test case class name is derived from BOOST_AUTO_TEST_CASE_FIXTURE and contains a single method named test_method. The test invocation function instantiates the test case class and invokes the test case method. Test log checkpoints are made before the test case class is instantiated and bracketing the test method invocation. This provides diagnostic checkpoints should a runtime error cause a test case to be aborted before any assertions are made.

Example Source Code

PrevUpHomeNext