diff options
| author | Martin Hořeňovský | 2021-01-27 09:07:15 +0100 |
|---|---|---|
| committer | GitHub | 2021-01-27 09:07:15 +0100 |
| commit | b435e391c45c7cdb23c35cd2afb3435b0b7e53c7 (patch) | |
| tree | a4bb48202c96d1dd4b7efe83f98c2919d890d1c9 /src/catch2/internal | |
| parent | ba8150516800dd5e18f818346a2a12c45b6ec542 (diff) | |
| parent | 971b1fc32a857caa10eb166f39442cee5237267b (diff) | |
| download | catch3-b435e391c45c7cdb23c35cd2afb3435b0b7e53c7.tar.gz | |
Merge pull request #2163 from catchorg/devel-list-outputs-to-out-flag
The output of --list-* flags obeys -o flag
Diffstat (limited to 'src/catch2/internal')
| -rw-r--r-- | src/catch2/internal/catch_list.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/catch2/internal/catch_list.cpp b/src/catch2/internal/catch_list.cpp index 1cedb3ae..d7969096 100644 --- a/src/catch2/internal/catch_list.cpp +++ b/src/catch2/internal/catch_list.cpp @@ -24,7 +24,7 @@ namespace Catch { void listTests(IStreamingReporter& reporter, IConfig const& config) { auto const& testSpec = config.testSpec(); auto matchedTestCases = filterTests(getAllTestCasesSorted(config), testSpec, config); - reporter.listTests(matchedTestCases, config); + reporter.listTests(matchedTestCases); } void listTags(IStreamingReporter& reporter, IConfig const& config) { @@ -46,10 +46,10 @@ namespace Catch { infos.push_back(std::move(tagc.second)); } - reporter.listTags(infos, config); + reporter.listTags(infos); } - void listReporters(IStreamingReporter& reporter, IConfig const& config) { + void listReporters(IStreamingReporter& reporter) { std::vector<ReporterDescription> descriptions; IReporterRegistry::FactoryMap const& factories = getRegistryHub().getReporterRegistry().getFactories(); @@ -58,7 +58,7 @@ namespace Catch { descriptions.push_back({ fac.first, fac.second->getDescription() }); } - reporter.listReporters(descriptions, config); + reporter.listReporters(descriptions); } } // end anonymous namespace @@ -96,7 +96,7 @@ namespace Catch { } if (config.listReporters()) { listed = true; - listReporters(reporter, config); + listReporters(reporter); } return listed; } |