--list-test-names quotes test names that start with #

- completes #717
This commit is contained in:
Phil Nash 2016-09-27 10:43:03 +01:00
parent 31861bbd46
commit 21cbfc107e
1 changed files with 4 additions and 1 deletions

View File

@ -68,7 +68,10 @@ namespace Catch {
++it ) {
matchedTests++;
TestCaseInfo const& testCaseInfo = it->getTestCaseInfo();
Catch::cout() << testCaseInfo.name << std::endl;
if( startsWith( testCaseInfo.name, "#" ) )
Catch::cout() << "\"" << testCaseInfo.name << "\"" << std::endl;
else
Catch::cout() << testCaseInfo.name << std::endl;
}
return matchedTests;
}