Menu

Failures during setUp()?

Help
2006-01-16
2013-04-22
  • Owen Jacobson

    Owen Jacobson - 2006-01-16

    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.

     
    • Owen Jacobson

      Owen Jacobson - 2006-01-16

      Oops.  Never mind, CPPUNIT_* macros work fine, I just forgot to chain setup methods from the actual test to a (parent) test fixture.

       

Log in to post a comment.