Removed 1 line of verbosity from --list-tests-and-sources

This commit is contained in:
Cyberboss 2016-06-15 12:16:16 -04:00
parent 590061d37f
commit cac0f4775e
1 changed files with 6 additions and 5 deletions

View File

@ -53,11 +53,12 @@ namespace Catch {
if( includeSources ) if( includeSources )
Catch::cout() << testCaseInfo.lineInfo << std::endl; Catch::cout() << testCaseInfo.lineInfo << std::endl;
} }
if ( !includeSources ) {
if( !config.testSpec().hasFilters() ) if( !config.testSpec().hasFilters() )
Catch::cout() << pluralise( matchedTests, "test case" ) << "\n" << std::endl; Catch::cout() << pluralise( matchedTests, "test case" ) << "\n" << std::endl;
else else
Catch::cout() << pluralise( matchedTests, "matching test case" ) << "\n" << std::endl; Catch::cout() << pluralise( matchedTests, "matching test case" ) << "\n" << std::endl;
}
return matchedTests; return matchedTests;
} }