Is there a clean way to abort testing if some part of the setUp process fails? I have a network application which, as part of the setUp method for my tests, attempts to connect to the server; I'd like the tests to abort with a useful message in the test output if the connection fails.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is there a clean way to abort testing if some part of the setUp process fails? I have a network application which, as part of the setUp method for my tests, attempts to connect to the server; I'd like the tests to abort with a useful message in the test output if the connection fails.
Oops. Never mind, CPPUNIT_* macros work fine, I just forgot to chain setup methods from the actual test to a (parent) test fixture.