Log total test result

This commit is contained in:
Martchus 2019-05-04 15:47:31 +02:00
parent 1480d9ab63
commit e8f5c5c948
1 changed files with 4 additions and 2 deletions

View File

@ -36,11 +36,13 @@ int main(int argc, char **argv)
try {
runner.addTest(overallTest->findTest(unit));
} catch (const invalid_argument &) {
cerr << "The specified test unit \"" << unit << "\" is not available and will be ignored." << endl;
cerr << "The specified test unit \"" << unit << "\" is not available and will be ignored.\n";
}
}
}
return !runner.run(string(), false);
const auto ok = runner.run(string(), false);
cerr << (ok ? "Tests successful\n" : "Tests failed\n");
return !ok;
}
#endif // TESTUTILS_CPPUNIT_H