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

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2
diff options
context:
space:
mode:
authorMartin Hořeňovský2022-10-26 00:04:49 +0200
committerMartin Hořeňovský2022-10-26 00:04:49 +0200
commit0ce8c25566176acbce2e887445d8c33306c184bc (patch)
tree8aba52b2d958b836f006f3960d546f8e15632936 /src/catch2
parent6185d0cc0a737d5a009f626d3611b868512d12f7 (diff)
downloadcatch3-0ce8c25566176acbce2e887445d8c33306c184bc.tar.gz
Report used filters in the TAP reporter
Diffstat (limited to 'src/catch2')
-rw-r--r--src/catch2/reporters/catch_reporter_tap.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/catch2/reporters/catch_reporter_tap.cpp b/src/catch2/reporters/catch_reporter_tap.cpp
index 6058f242..d433d986 100644
--- a/src/catch2/reporters/catch_reporter_tap.cpp
+++ b/src/catch2/reporters/catch_reporter_tap.cpp
@@ -10,6 +10,8 @@
#include <catch2/internal/catch_string_manip.hpp>
#include <catch2/catch_test_case_info.hpp>
#include <catch2/interfaces/catch_interfaces_config.hpp>
+#include <catch2/catch_test_spec.hpp>
+#include <catch2/reporters/catch_reporter_helpers.hpp>
#include <algorithm>
#include <iterator>
@@ -186,6 +188,10 @@ namespace Catch {
} // End anonymous namespace
void TAPReporter::testRunStarting( TestRunInfo const& ) {
+ if ( m_config->testSpec().hasFilters() ) {
+ m_stream << "# filters: "
+ << serializeFilters( m_config->getTestsOrTags() ) << '\n';
+ }
m_stream << "# rng-seed: " << m_config->rngSeed() << '\n';
}