Browse Source

Print "Executing test" via cppunit.h

Otherwise it is a bit annoying if one just wants to instantiate
a TestApplication for looking up test files.
charconv
Martchus 2 years ago
parent
commit
9fe7053869
  1. 2
      tests/cppunit.h
  2. 1
      tests/testutils.cpp

2
tests/cppunit.h

@ -4,6 +4,7 @@
#include "./testutils.h"
#include "../application/commandlineutils.h"
#include "../io/ansiescapecodes.h"
#include <cppunit/TestPath.h>
#include <cppunit/extensions/TestFactoryRegistry.h>
@ -73,6 +74,7 @@ int main(int argc, char **argv)
return -1;
}
}
cerr << EscapeCodes::TextAttribute::Bold << "Executing test cases ..." << EscapeCodes::Phrases::EndFlush;
const auto ok = runner.run(string(), false);
cerr << (ok ? "Tests successful\n" : "Tests failed\n");
return !ok;

1
tests/testutils.cpp

@ -204,7 +204,6 @@ TestApplication::TestApplication(int argc, const char *const *argv)
}
m_valid = true;
cerr << TextAttribute::Bold << "Executing test cases ..." << Phrases::EndFlush;
}
/*!

Loading…
Cancel
Save