Update of /cvsroot/cppunit/cppunit2/src/cpput
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19482/src/cpput
Modified Files:
lighttestrunner.cpp
Log Message:
- Added test run summary at the end of test run
- cpputtest now use LightTestRunner instead of OpenTest.
Index: lighttestrunner.cpp
===================================================================
RCS file: /cvsroot/cppunit/cppunit2/src/cpput/lighttestrunner.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** lighttestrunner.cpp 4 Jul 2005 08:11:26 -0000 1.2
--- lighttestrunner.cpp 7 Aug 2005 08:42:15 -0000 1.3
***************
*** 33,37 ****
for ( Tests::iterator it = tests_.begin(); it != tests_.end(); ++it )
runTest( *it );
! printf( "Failure report:\n", report_ );
return testFailed_ == 0;
}
--- 33,48 ----
for ( Tests::iterator it = tests_.begin(); it != tests_.end(); ++it )
runTest( *it );
! if ( testFailed_ > 0 )
! {
! printf( "Failure report:\n", report_ );
! printf( "%d/%d tests passed, %d tests failed.",
! testRun_ - testFailed_,
! testRun_,
! testFailed_ );
! }
! else
! {
! printf( "All %d tests passed.", testRun_ );
! }
return testFailed_ == 0;
}
|