diff options
| author | Martin Hořeňovský | 2019-06-16 19:27:06 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2019-10-29 14:07:18 +0100 |
| commit | c582e351ce8420cc74c84abf0a797a3663bf06ea (patch) | |
| tree | d5eb315456d1d4352ec5f0a579dd35e3b42270b8 /include | |
| parent | d2cddfc9c5e1851dd46888f330ae324884f7c2c0 (diff) | |
| download | catch3-c582e351ce8420cc74c84abf0a797a3663bf06ea.tar.gz | |
Remove --list-test-names-only
People should use verbosity modifiers with `--list-tests` instead.
Closes #1190
Diffstat (limited to 'include')
| -rw-r--r-- | include/internal/catch_commandline.cpp | 3 | ||||
| -rw-r--r-- | include/internal/catch_config.cpp | 1 | ||||
| -rw-r--r-- | include/internal/catch_config.hpp | 2 | ||||
| -rw-r--r-- | include/internal/catch_list.cpp | 20 |
4 files changed, 0 insertions, 26 deletions
diff --git a/include/internal/catch_commandline.cpp b/include/internal/catch_commandline.cpp index 365a3c9d..0008c577 100644 --- a/include/internal/catch_commandline.cpp +++ b/include/internal/catch_commandline.cpp @@ -181,9 +181,6 @@ namespace Catch { | Opt( setVerbosity, "quiet|normal|high" ) ["-v"]["--verbosity"] ( "set output verbosity" ) - | Opt( config.listTestNamesOnly ) - ["--list-test-names-only"] - ( "list all/matching test cases names only" ) | Opt( config.listReporters ) ["--list-reporters"] ( "list all reporters" ) diff --git a/include/internal/catch_config.cpp b/include/internal/catch_config.cpp index e222328b..6a5e5f38 100644 --- a/include/internal/catch_config.cpp +++ b/include/internal/catch_config.cpp @@ -41,7 +41,6 @@ namespace Catch { } bool Config::listTests() const { return m_data.listTests; } - bool Config::listTestNamesOnly() const { return m_data.listTestNamesOnly; } bool Config::listTags() const { return m_data.listTags; } bool Config::listReporters() const { return m_data.listReporters; } diff --git a/include/internal/catch_config.hpp b/include/internal/catch_config.hpp index 95b67d25..2074d933 100644 --- a/include/internal/catch_config.hpp +++ b/include/internal/catch_config.hpp @@ -30,7 +30,6 @@ namespace Catch { bool listTests = false; bool listTags = false; bool listReporters = false; - bool listTestNamesOnly = false; bool showSuccessfulTests = false; bool shouldDebugBreak = false; @@ -79,7 +78,6 @@ namespace Catch { std::string const& getFilename() const; bool listTests() const; - bool listTestNamesOnly() const; bool listTags() const; bool listReporters() const; 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); |