Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorMartin Hořeňovský2021-11-14 00:12:20 +0100
committerMartin Hořeňovský2021-11-14 11:27:45 +0100
commit0c9fe16537cdda0deecf9a6d788358c380b9e174 (patch)
treed490c76d238eb084ccc88cf731c9de8b7b28b23c /src
parentd02ea5adeecb094966ca09f80e027c9c3c11f502 (diff)
downloadcatch3-0c9fe16537cdda0deecf9a6d788358c380b9e174.tar.gz
Opt out JUnit/SonarQube reporter from expanding passing assertions
Closes #1966
Diffstat (limited to 'src')
-rw-r--r--src/catch2/reporters/catch_reporter_junit.cpp1
-rw-r--r--src/catch2/reporters/catch_reporter_sonarqube.hpp1
2 files changed, 2 insertions, 0 deletions
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;