[Cppunit-cvs] cppunit2/src/cpputtest main.cpp,1.21,1.22
Brought to you by:
blep
From: Baptiste L. <bl...@us...> - 2005-08-07 08:42:23
|
Update of /cvsroot/cppunit/cppunit2/src/cpputtest In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19482/src/cpputtest Modified Files: main.cpp Log Message: - Added test run summary at the end of test run - cpputtest now use LightTestRunner instead of OpenTest. Index: main.cpp =================================================================== RCS file: /cvsroot/cppunit/cppunit2/src/cpputtest/main.cpp,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** main.cpp 7 Mar 2005 21:34:45 -0000 1.21 --- main.cpp 7 Aug 2005 08:42:15 -0000 1.22 *************** *** 9,14 **** #include "reflectiontest.h" ! #include <cpput/testrunner.h> // cppunit2 testrunner for opentest ! #include <opentest/texttestdriver.h> --- 9,15 ---- #include "reflectiontest.h" ! #include <cpput/lighttestrunner.h> ! //#include <cpput/testrunner.h> // cppunit2 testrunner for opentest ! //#include <opentest/texttestdriver.h> *************** *** 107,110 **** --- 108,112 ---- // allSuite->add( CommandLineOptionsTest::suite() ); + /* // using opentest CppUT::TestRunner runner; CppUT::AbstractTestSuitePtr rootSuite = *************** *** 114,117 **** --- 116,124 ---- OpenTest::TextTestDriver driver( runner ); bool sucessful = driver.run(); + */ + + CppUT::LightTestRunner runner; + runner.addTest( allSuite.get() ); + bool sucessful = runner.runAllTests(); return sucessful ? 0 : 1; } |