[Mockpp-commits] mockpp/mockpp/tests mock_test.cpp,1.26,1.27
Brought to you by:
ewald-arnold
From: Ewald A. <ewa...@us...> - 2005-12-10 21:58:51
|
Update of /cvsroot/mockpp/mockpp/mockpp/tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27576/mockpp/tests Modified Files: mock_test.cpp Log Message: use specialized runner Index: mock_test.cpp =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/tests/mock_test.cpp,v retrieving revision 1.26 retrieving revision 1.27 diff -u -d -r1.26 -r1.27 --- mock_test.cpp 10 Dec 2005 15:18:34 -0000 1.26 +++ mock_test.cpp 10 Dec 2005 21:58:43 -0000 1.27 @@ -42,6 +42,8 @@ #include <cxxtest/TestRunner.h> +#include <mockpp/framework/CxxTestRunner.h> + #ifdef GUI #include <cxxtest/StdioPrinter.h> //#include <cxxtest/QtGui.h> @@ -76,7 +78,10 @@ #ifdef GUI return CxxTest::GuiTuiRunner<CxxTest::QtGui, CxxTest::StdioPrinter>( argc, argv ).run(); #else - return CxxTest::ErrorPrinter().run(); + CxxTest::ErrorPrinter ep; + mockpp::CxxTestRunner::runAllTests(ep); + return CxxTest::tracker().failedTests(); + //return CxxTest::ErrorPrinter().run(); #endif } |