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.
This commit is contained in:
parent
e1313c77a0
commit
9fe7053869
|
@ -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;
|
||||
|
|
|
@ -204,7 +204,6 @@ TestApplication::TestApplication(int argc, const char *const *argv)
|
|||
}
|
||||
|
||||
m_valid = true;
|
||||
cerr << TextAttribute::Bold << "Executing test cases ..." << Phrases::EndFlush;
|
||||
}
|
||||
|
||||
/*!
|
||||
|
|
Loading…
Reference in New Issue