| 7556 | } |
| 7557 | |
| 7558 | std::size_t listTestsNamesOnly(Config const &config) { |
| 7559 | TestSpec testSpec = config.testSpec(); |
| 7560 | std::size_t matchedTests = 0; |
| 7561 | std::vector<TestCase> matchedTestCases = filterTests(getAllTestCasesSorted(config), testSpec, config); |
| 7562 | for (auto const &testCaseInfo : matchedTestCases) { |
| 7563 | matchedTests++; |
| 7564 | if (startsWith(testCaseInfo.name, '#')) |
| 7565 | Catch::cout() << '"' << testCaseInfo.name << '"'; |
| 7566 | else |
| 7567 | Catch::cout() << testCaseInfo.name; |
| 7568 | if (config.verbosity() >= Verbosity::High) |
| 7569 | Catch::cout() << "\t@" << testCaseInfo.lineInfo; |
| 7570 | Catch::cout() << std::endl; |
| 7571 | } |
| 7572 | return matchedTests; |
| 7573 | } |
| 7574 | |
| 7575 | void TagInfo::add(std::string const &spelling) { |
| 7576 | ++count; |
no test coverage detected