예제 #1
0
int main( int argc, char** argv )
{
	QApplication app( argc, argv );

	//CPPUNIT_NS::QtUi::TestRunner runner;
	
    CPPUNIT_NS::QtTestRunner runner; 
		
	runner.addTest( CPPUNIT_NS::TestFactoryRegistry::getRegistry().makeTest() );
	runner.run( true );

	return 0;
}
예제 #2
0
/** The main function of the UnitTest (Qt version)
  *
  */
int main(int argc, char* argv[]) {
    Logger::getSingleton().setFilename("RainbruRPG-tests");

    LOGI("Starting graphic version of unit tests");
    QApplication app(argc, argv);
    CPPUNIT_NS::QtTestRunner runner;

    CPPUNIT_NS::TestSuite suite("RPG");
    initRPGSuite(&suite);
    runner.addTest(&suite);

    runner.run(true);
    return 0;
}