From db2eda9009f87266455505927491c92d040ffb42 Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Fri, 22 Apr 2011 19:22:14 +0100 Subject: [PATCH] XML Reporter reports file/ line in Exception element --- catch_reporter_xml.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/catch_reporter_xml.hpp b/catch_reporter_xml.hpp index b54e39b6..fd303880 100644 --- a/catch_reporter_xml.hpp +++ b/catch_reporter_xml.hpp @@ -135,6 +135,8 @@ namespace Catch { case ResultWas::ThrewException: m_xml.scopedElement( "Exception" ) + .writeAttribute( "filename", resultInfo.getFilename() ) + .writeAttribute( "line", resultInfo.getLine() ) .writeText( resultInfo.getMessage() ); m_currentTestSuccess = false; break;