
27 Dec
2007
27 Dec
'07
8:38 a.m.
"Pierre-Jules Tremblay" <boost@piairjooles.ca> wrote in message
One suggestion might be to add a new class of fixture. There is a feature for test case specific fixtures, another for test suite-specifc fixtures, and the perhaps ill-named global fixture, which is run independently for all test cases. Perhaps there should be another fixture, a really global one, which is constructed before all tests are run and destroyed after all tests are run. A static variable won't cut it because of the order-of-initialisation fiasco.
I might be missing something, but from my understanding that is what BOOST_GLOBAL_FIXTURE is doing. It is setup leg executed before testing is started. Teardown once all tests are completed. Gennadiy