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

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/internal
diff options
context:
space:
mode:
authorMartin Hořeňovský2021-01-27 09:07:15 +0100
committerGitHub2021-01-27 09:07:15 +0100
commitb435e391c45c7cdb23c35cd2afb3435b0b7e53c7 (patch)
treea4bb48202c96d1dd4b7efe83f98c2919d890d1c9 /src/catch2/internal
parentba8150516800dd5e18f818346a2a12c45b6ec542 (diff)
parent971b1fc32a857caa10eb166f39442cee5237267b (diff)
downloadcatch3-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.cpp10
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;
}