Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

JUnit/SonarQube reporters use base's stream member

Commit
5f38cc39fac811b7d08d48bfc8b94599c2fd720b
Author
Martin Hořeňovský ·
Parents
b892ab133c32

Files · Download .tar.gz

Changes

 src/catch2/reporters/catch_reporter_junit.cpp     | 2 +-
 src/catch2/reporters/catch_reporter_sonarqube.hpp | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/catch2/reporters/catch_reporter_junit.cpp b/src/catch2/reporters/catch_reporter_junit.cpp
index 30df87a9..e12fc3ea 100644
--- a/src/catch2/reporters/catch_reporter_junit.cpp
+++ b/src/catch2/reporters/catch_reporter_junit.cpp
@@ -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;
diff --git a/src/catch2/reporters/catch_reporter_sonarqube.hpp b/src/catch2/reporters/catch_reporter_sonarqube.hpp
index de3d08d4..ec22ecfa 100644
--- a/src/catch2/reporters/catch_reporter_sonarqube.hpp
+++ b/src/catch2/reporters/catch_reporter_sonarqube.hpp
@@ -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;