#ifndef CPPUNIT_H #define CPPUNIT_H #include "./testutils.h" #include #include #include using namespace std; using namespace TestUtilities; using namespace CPPUNIT_NS; /*! * \brief Performs unit tests using cppunit. */ int main(int argc, char **argv) { TestApplication testApp(argc, argv); if(testApp) { // run tests TextUi::TestRunner runner; TestFactoryRegistry ®istry = TestFactoryRegistry::getRegistry(); runner.addTest(registry.makeTest()); return !runner.run(string(), false); } else { return -1; } } #endif // CPPUNIT_H