Skip to content

Commit 03611a7

Browse files
Fix custom discovery example so it works with all versions of Catch2.
1 parent bed6078 commit 03611a7

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

Docs/Discovery.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -218,12 +218,9 @@ class DiscoverReporter : public StreamingReporterBase<DiscoverReporter>
218218
};
219219

220220
DiscoverReporter::DiscoverReporter( ReporterConfig const& _config )
221-
: StreamingReporterBase( _config ),
221+
: StreamingReporterBase( _config ),
222222
m_xml(_config.stream())
223-
{
224-
m_reporterPrefs.shouldRedirectStdOut = false;
225-
m_reporterPrefs.shouldReportAllAssertions = false;
226-
}
223+
{ }
227224

228225
DiscoverReporter::~DiscoverReporter() = default;
229226
std::string DiscoverReporter::getDescription()

ReferenceTests/Src/Catch2/catch_discover.hpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,9 @@ namespace Catch
134134
};
135135

136136
DiscoverReporter::DiscoverReporter( ReporterConfig const& _config )
137-
: StreamingReporterBase( _config ),
137+
: StreamingReporterBase( _config ),
138138
m_xml(_config.stream())
139-
{
140-
m_reporterPrefs.shouldRedirectStdOut = false;
141-
m_reporterPrefs.shouldReportAllAssertions = false;
142-
}
139+
{ }
143140

144141
DiscoverReporter::~DiscoverReporter() = default;
145142

0 commit comments

Comments
 (0)