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

Opt out JUnit/SonarQube reporter from expanding passing assertions

Closes #1966
Commit
0c9fe16537cdda0deecf9a6d788358c380b9e174
Author
Martin Hořeňovský ·
Parents
d02ea5adeecb

Files · Download .tar.gz

Changes

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

diff --git a/src/catch2/reporters/catch_reporter_junit.cpp b/src/catch2/reporters/catch_reporter_junit.cpp
index 57b86909..30df87a9 100644
--- a/src/catch2/reporters/catch_reporter_junit.cpp
+++ b/src/catch2/reporters/catch_reporter_junit.cpp
@@ -74,6 +74,7 @@ namespace Catch {
         {
             m_preferences.shouldRedirectStdOut = true;
             m_preferences.shouldReportAllAssertions = true;
+            m_shouldStoreSuccesfulAssertions = false;
         }
 
     std::string JunitReporter::getDescription() {
diff --git a/src/catch2/reporters/catch_reporter_sonarqube.hpp b/src/catch2/reporters/catch_reporter_sonarqube.hpp
index 720c0ea0..de3d08d4 100644
--- a/src/catch2/reporters/catch_reporter_sonarqube.hpp
+++ b/src/catch2/reporters/catch_reporter_sonarqube.hpp
@@ -21,6 +21,7 @@ namespace Catch {
         , xml(config.stream()) {
             m_preferences.shouldRedirectStdOut = true;
             m_preferences.shouldReportAllAssertions = true;
+            m_shouldStoreSuccesfulAssertions = false;
         }
 
         ~SonarQubeReporter() override = default;