It appears CppUnit is instantiating a new TestFixture instance for each test method at run time. I was hoping to be able to run setUp() once for all test methods, as in one of my cases it takes an hour of computation to construct the test fixture.
Right now I resort to class static variables (for holding the objects that took long to construct). But it doesn't look pretty.
I also needed to do some setup for all tests in my testfixture derived class, so I used the constructor.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.