Exemple #1
0
void Test::run (TestResult& result) 
{
  try {
    setup();
    runTest (result);
  } catch (std::exception e) {
    result.addFailure (Failure (e.what(), name, "", 0));	
  } catch (...) {
    result.addFailure (Failure ("Unhandled exception", name, "", 0));	
  }
  teardown();
  result.testWasRun();
}
Exemple #2
0
void Test::run (TestResult& result)
{
    runTest (result);
    result.testWasRun();
}