diff options
| author | Martin Hořeňovský | 2021-11-14 00:12:20 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2021-11-14 11:27:45 +0100 |
| commit | 0c9fe16537cdda0deecf9a6d788358c380b9e174 (patch) | |
| tree | d490c76d238eb084ccc88cf731c9de8b7b28b23c | |
| parent | d02ea5adeecb094966ca09f80e027c9c3c11f502 (diff) | |
| download | catch3-0c9fe16537cdda0deecf9a6d788358c380b9e174.tar.gz | |
Opt out JUnit/SonarQube reporter from expanding passing assertions
Closes #1966
| -rw-r--r-- | src/catch2/reporters/catch_reporter_junit.cpp | 1 | ||||
| -rw-r--r-- | src/catch2/reporters/catch_reporter_sonarqube.hpp | 1 |
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; |