XML Reporter reports file/ line in Exception element

This commit is contained in:
Phil Nash 2011-04-22 19:22:14 +01:00
parent 02e597c2cc
commit db2eda9009

View File

@ -135,6 +135,8 @@ namespace Catch
{ {
case ResultWas::ThrewException: case ResultWas::ThrewException:
m_xml.scopedElement( "Exception" ) m_xml.scopedElement( "Exception" )
.writeAttribute( "filename", resultInfo.getFilename() )
.writeAttribute( "line", resultInfo.getLine() )
.writeText( resultInfo.getMessage() ); .writeText( resultInfo.getMessage() );
m_currentTestSuccess = false; m_currentTestSuccess = false;
break; break;