c++boost-testfixturesuite

boost-test initialization for each suite (not case)


I need to init some variables, which are "global" inside a BOOST_AUTO_TEST_SUITE so their constructors will be called when the suite starts and their destructors will be called right after the last corresponding BOOST_AUTO_TEST_CASE is finished

does someone know how I can do it? Looks like global fixtures is not a solution...


Solution

  • For future reference:

    This has been added to the library, as of 1.36 I believe.