| 8934 | } |
| 8935 | |
| 8936 | std::size_t listTestsNamesOnly( Config const& config ) { |
| 8937 | TestSpec testSpec = config.testSpec(); |
| 8938 | std::size_t matchedTests = 0; |
| 8939 | std::vector<TestCase> matchedTestCases = filterTests( getAllTestCasesSorted( config ), testSpec, config ); |
| 8940 | for( auto const& testCaseInfo : matchedTestCases ) { |
| 8941 | matchedTests++; |
| 8942 | if( startsWith( testCaseInfo.name, '#' ) ) |
| 8943 | Catch::cout() << '"' << testCaseInfo.name << '"'; |
| 8944 | else |
| 8945 | Catch::cout() << testCaseInfo.name; |
| 8946 | if ( config.verbosity() >= Verbosity::High ) |
| 8947 | Catch::cout() << "\t@" << testCaseInfo.lineInfo; |
| 8948 | Catch::cout() << std::endl; |
| 8949 | } |
| 8950 | return matchedTests; |
| 8951 | } |
| 8952 | |
| 8953 | void TagInfo::add( std::string const& spelling ) { |
| 8954 | ++count; |
no test coverage detected