JUnit/SonarQube reporters use base's stream member

This commit is contained in:
Martin Hořeňovský 2021-11-14 11:24:33 +01:00
parent b892ab133c
commit 5f38cc39fa
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A
2 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ namespace Catch {
JunitReporter::JunitReporter( ReporterConfig const& _config )
: CumulativeReporterBase( _config ),
xml( _config.stream() )
xml( m_stream )
{
m_preferences.shouldRedirectStdOut = true;
m_preferences.shouldReportAllAssertions = true;

View File

@ -18,7 +18,7 @@ namespace Catch {
SonarQubeReporter(ReporterConfig const& config)
: CumulativeReporterBase(config)
, xml(config.stream()) {
, xml(m_stream) {
m_preferences.shouldRedirectStdOut = true;
m_preferences.shouldReportAllAssertions = true;
m_shouldStoreSuccesfulAssertions = false;