Added stdout and stderr to XML Reporter

This commit is contained in:
Phil Nash
2017-02-06 16:14:06 +00:00
parent a189387f49
commit 23eb4cc580
2 changed files with 25 additions and 3 deletions

View File

@@ -164,6 +164,11 @@ namespace Catch {
if ( m_config->showDurations() == ShowDurations::Always )
e.writeAttribute( "durationInSeconds", m_testCaseTimer.getElapsedSeconds() );
if( !testCaseStats.stdOut.empty() )
m_xml.scopedElement( "StdOut" ).writeText( trim( testCaseStats.stdOut ), false );
if( !testCaseStats.stdErr.empty() )
m_xml.scopedElement( "StdErr" ).writeText( trim( testCaseStats.stdErr ), false );
m_xml.endElement();
}