catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
XML Reporter reports file/ line in Exception element
- Commit
db2eda9009f87266455505927491c92d040ffb42- Author
- Phil Nash ·
- Parents
02e597c2ccff
Changes
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;