Skip to content

Commit

Permalink
Fix custom discovery example so it works with all versions of Catch2.
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnnyHendriks committed Feb 10, 2019
1 parent bed6078 commit 03611a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
7 changes: 2 additions & 5 deletions Docs/Discovery.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,12 +218,9 @@ class DiscoverReporter : public StreamingReporterBase<DiscoverReporter>
};

DiscoverReporter::DiscoverReporter( ReporterConfig const& _config )
: StreamingReporterBase( _config ),
: StreamingReporterBase( _config ),
m_xml(_config.stream())
{
m_reporterPrefs.shouldRedirectStdOut = false;
m_reporterPrefs.shouldReportAllAssertions = false;
}
{ }

DiscoverReporter::~DiscoverReporter() = default;
std::string DiscoverReporter::getDescription()
Expand Down
7 changes: 2 additions & 5 deletions ReferenceTests/Src/Catch2/catch_discover.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,9 @@ namespace Catch
};

DiscoverReporter::DiscoverReporter( ReporterConfig const& _config )
: StreamingReporterBase( _config ),
: StreamingReporterBase( _config ),
m_xml(_config.stream())
{
m_reporterPrefs.shouldRedirectStdOut = false;
m_reporterPrefs.shouldReportAllAssertions = false;
}
{ }

DiscoverReporter::~DiscoverReporter() = default;

Expand Down

0 comments on commit 03611a7

Please sign in to comment.