mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-05 05:34:46 +02:00
XML Reporter reports file/ line in Exception element
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user