mirror of
https://github.com/catchorg/Catch2.git
synced 2024-12-22 11:23:29 +01:00
Report used filters in the TAP reporter
This commit is contained in:
parent
6185d0cc0a
commit
0ce8c25566
@ -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';
|
||||
}
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
# filters: ~[!nonportable]~[!benchmark]~[approvals] *
|
||||
# rng-seed: 1
|
||||
# # A test name that starts with a #
|
||||
ok {test-number} - with 1 message: 'yay'
|
||||
|
@ -1,3 +1,4 @@
|
||||
# filters: ~[!nonportable]~[!benchmark]~[approvals] *
|
||||
# rng-seed: 1
|
||||
# # A test name that starts with a #
|
||||
ok {test-number} - with 1 message: 'yay'
|
||||
|
Loading…
Reference in New Issue
Block a user