Junit reporter uses filename for suite name if no explicit groups

This commit is contained in:
Phil Nash
2012-11-19 19:59:10 +00:00
parent d0cc33f284
commit a90a88adcd
8 changed files with 31 additions and 26 deletions

View File

@@ -44,8 +44,8 @@ TEST_CASE( "selftest/main", "Runs all Catch self tests and checks their results"
SECTION( "selftest/test counts/failing tests",
"Number of 'failing' tests is fixed" ) {
Totals totals = runner.runMatching( "./failing/*" );
CHECK( totals.assertions.passed == 0 );
CHECK( totals.assertions.failed == 72 );
CHECK( totals.assertions.passed == 1 );
CHECK( totals.assertions.failed == 73 );
}
}
}

View File

@@ -170,7 +170,7 @@ namespace Catch {
}
break;
case Expected::ToFail:
if( totals.assertions.passed > 0 ) {
if( totals.assertions.failed == 0 ) {
INFO( runner.getOutput() );
FAIL( "Expected test case '"
<< testCase.getName()