Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/include/internal/catch_list.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2019-06-16 19:27:06 +0200
committerMartin Hořeňovský2019-10-29 14:07:18 +0100
commitc582e351ce8420cc74c84abf0a797a3663bf06ea (patch)
treed5eb315456d1d4352ec5f0a579dd35e3b42270b8 /include/internal/catch_list.cpp
parentd2cddfc9c5e1851dd46888f330ae324884f7c2c0 (diff)
downloadcatch3-c582e351ce8420cc74c84abf0a797a3663bf06ea.tar.gz
Remove --list-test-names-only
People should use verbosity modifiers with `--list-tests` instead. Closes #1190
Diffstat (limited to 'include/internal/catch_list.cpp')
-rw-r--r--include/internal/catch_list.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/include/internal/catch_list.cpp b/include/internal/catch_list.cpp
index f8b3503f..7a1ae7d9 100644
--- a/include/internal/catch_list.cpp
+++ b/include/internal/catch_list.cpp
@@ -71,22 +71,6 @@ namespace Catch {
Catch::cout() << pluralise(matchedTestCases.size(), "matching test case") << '\n' << std::endl;
}
- void listTestsNamesOnly(Config const& config) {
- TestSpec testSpec = config.testSpec();
- std::size_t matchedTests = 0;
- std::vector<TestCase> matchedTestCases = filterTests(getAllTestCasesSorted(config), testSpec, config);
- for (auto const& testCaseInfo : matchedTestCases) {
- matchedTests++;
- if (startsWith(testCaseInfo.name, '#'))
- Catch::cout() << '"' << testCaseInfo.name << '"';
- else
- Catch::cout() << testCaseInfo.name;
- if (config.verbosity() >= Verbosity::High)
- Catch::cout() << "\t@" << testCaseInfo.lineInfo;
- Catch::cout() << std::endl;
- }
- }
-
void listTags(Config const& config) {
TestSpec testSpec = config.testSpec();
if (config.hasTestFilters())
@@ -172,10 +156,6 @@ namespace Catch {
listed = true;
listTests(*config);
}
- if (config->listTestNamesOnly()) {
- listed = true;
- listTestsNamesOnly(*config);
- }
if (config->listTags()) {
listed = true;
listTags(*config);