From 0c9fe16537cdda0deecf9a6d788358c380b9e174 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Sun, 14 Nov 2021 00:12:20 +0100 Subject: [PATCH] Opt out JUnit/SonarQube reporter from expanding passing assertions Closes #1966 --- 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;