| 11282 | } |
| 11283 | |
| 11284 | std::size_t listTestsNamesOnly( Config const& config ) { |
| 11285 | TestSpec const& testSpec = config.testSpec(); |
| 11286 | std::size_t matchedTests = 0; |
| 11287 | std::vector<TestCase> matchedTestCases = filterTests( getAllTestCasesSorted( config ), testSpec, config ); |
| 11288 | for( auto const& testCaseInfo : matchedTestCases ) { |
| 11289 | matchedTests++; |
| 11290 | if( startsWith( testCaseInfo.name, '#' ) ) |
| 11291 | Catch::cout() << '"' << testCaseInfo.name << '"'; |
| 11292 | else |
| 11293 | Catch::cout() << testCaseInfo.name; |
| 11294 | if ( config.verbosity() >= Verbosity::High ) |
| 11295 | Catch::cout() << "\t@" << testCaseInfo.lineInfo; |
| 11296 | Catch::cout() << std::endl; |
| 11297 | } |
| 11298 | return matchedTests; |
| 11299 | } |
| 11300 | |
| 11301 | void TagInfo::add( std::string const& spelling ) { |
| 11302 | ++count; |
no test coverage detected