Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

BOOST_FIXTURE_TEST_CASE

BOOST_FIXTURE_TEST_CASE(name, fixture) defines a test case class name that derives from fixture. If the test case is declared within a test suite that also has a test fixture, then to get the cumulative effect of both fixtures the test case fixture should derive from the test suite's fixture. Otherwise, the test case fixture will replace the test suite fixture for a test case defined with BOOST_FIXTURE_TEST_CASE.

Example Source Code

PrevUpHomeNext