main-tester.cpp

Go to the documentation of this file.
00001 #include "Qt.h"
00002 #include "Utils/CalitkoMocks/TesterApplication.h"
00003 #include "3rdParty/cppunit/extensions/TestFactoryRegistry.h"
00004 #include "3rdParty/cppunit/ui/text/TestRunner.h"
00005 
00006 using namespace CppUnit;
00007 using namespace Utils::CalitkoMocks;
00008 
00009 int main(int argc, char** argv)
00010 {
00011     TesterApplication app (argc, argv);
00012     TextUi::TestRunner runner;
00013     TestFactoryRegistry &registry = TestFactoryRegistry::getRegistry();
00014     runner.addTest (registry.makeTest());
00015     bool wasSuccessful = runner.run ("", false);
00016     return !wasSuccessful;
00017 }