Common C++ classes and routines used by my applications such as argument parser, IO and conversion utilities
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
687 B

#ifndef CPPUNIT_H
#define CPPUNIT_H
#include "./testutils.h"
#include <cppunit/extensions/TestFactoryRegistry.h>
#include <cppunit/ui/text/TestRunner.h>
#include <iostream>
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 &registry = TestFactoryRegistry::getRegistry();
return !, false);
} else {
return -1;
#endif // CPPUNIT_H