From 6e996956103a390046525a88487cbfe739625c45 Mon Sep 17 00:00:00 2001 From: "Sean D. Cline" Date: Sat, 11 Oct 2014 20:01:14 -0400 Subject: [PATCH] XmlReporter enhancement: Add an attribute for the macro name of an expression. --- 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 );