6 #include <unittest++/UnitTest++.h>
7 #include <unittest++/Test.h>
8 #include <unittest++/TestReporterStdout.h>
9 #include <unittest++/TestRunner.h>
13 int main(
int argc,
char* argv[])
15 std::vector<std::string> tests;
16 if(argc > 1 && !strcmp(argv[1],
"dev")) {
17 tests.push_back(
"Development");
19 tests.push_back(
"CoulombIntegrals");
20 tests.push_back(
"BoysFunction");
21 tests.push_back(
"GaussianIntegral");
22 tests.push_back(
"Hydrogen");
23 tests.push_back(
"GaussianOxygen");
24 tests.push_back(
"Parser");
25 tests.push_back(
"Systems");
26 tests.push_back(
"Unrestricted");
29 for(
const std::string& testName : tests) {
30 std::cout <<
"Running " << testName << std::endl;
31 UnitTest::TestReporterStdout reporter;
32 UnitTest::TestRunner runner(reporter);
33 result += runner.RunTestsIf(UnitTest::Test::GetTestList(), testName.c_str(), UnitTest::True(), 0);
36 std::cerr <<
"FAILURE: Some tests failed! See above log for details..." << std::endl;