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;