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

XmlReporter enhancement: Add an attribute for the macro name of an expression.

Commit
6e996956103a390046525a88487cbfe739625c45
Author
Sean D. Cline ·
Parents
ea81e98d6a01

Files · Download .tar.gz

Changes

 include/reporters/catch_reporter_xml.hpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/reporters/catch_reporter_xml.hpp b/include/reporters/catch_reporter_xml.hpp
index 530bb3c5..1b7c0199 100644
--- a/include/reporters/catch_reporter_xml.hpp
+++ b/include/reporters/catch_reporter_xml.hpp
@@ -99,6 +99,7 @@ namespace Catch {
             if( assertionResult.hasExpression() ) {
                 m_xml.startElement( "Expression" )
                     .writeAttribute( "success", assertionResult.succeeded() )
+					.writeAttribute( "type", assertionResult.getTestMacroName() )
                     .writeAttribute( "filename", assertionResult.getSourceInfo().file )
                     .writeAttribute( "line", assertionResult.getSourceInfo().line );