diff options
| author | Ryan Pavlik | 2020-06-11 16:58:56 -0500 |
|---|---|---|
| committer | Martin Hořeňovský | 2020-07-24 22:30:28 +0200 |
| commit | 7f5884016313989fd52a09a4c030fa441d3fd99a (patch) | |
| tree | 78ff803f9110938ced4d44c77cafd7eda4c5e591 /src | |
| parent | 3b0f8c7ff0df4ee3f713d9a0899d6d670c85cc82 (diff) | |
| download | catch3-7f5884016313989fd52a09a4c030fa441d3fd99a.tar.gz | |
Add OverallResultsCases element to XML reporter
Diffstat (limited to 'src')
| -rw-r--r-- | src/catch2/reporters/catch_reporter_xml.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/catch2/reporters/catch_reporter_xml.cpp b/src/catch2/reporters/catch_reporter_xml.cpp index 06615df5..b7712ec7 100644 --- a/src/catch2/reporters/catch_reporter_xml.cpp +++ b/src/catch2/reporters/catch_reporter_xml.cpp @@ -206,6 +206,10 @@ namespace Catch { .writeAttribute( "successes", testGroupStats.totals.assertions.passed ) .writeAttribute( "failures", testGroupStats.totals.assertions.failed ) .writeAttribute( "expectedFailures", testGroupStats.totals.assertions.failedButOk ); + m_xml.scopedElement( "OverallResultsCases") + .writeAttribute( "successes", testGroupStats.totals.testCases.passed ) + .writeAttribute( "failures", testGroupStats.totals.testCases.failed ) + .writeAttribute( "expectedFailures", testGroupStats.totals.testCases.failedButOk ); m_xml.endElement(); } @@ -215,6 +219,10 @@ namespace Catch { .writeAttribute( "successes", testRunStats.totals.assertions.passed ) .writeAttribute( "failures", testRunStats.totals.assertions.failed ) .writeAttribute( "expectedFailures", testRunStats.totals.assertions.failedButOk ); + m_xml.scopedElement( "OverallResultsCases") + .writeAttribute( "successes", testRunStats.totals.testCases.passed ) + .writeAttribute( "failures", testRunStats.totals.testCases.failed ) + .writeAttribute( "expectedFailures", testRunStats.totals.testCases.failedButOk ); m_xml.endElement(); } |