Added stdout and stderr to XML Reporter

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

No files matched your search

+5
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();
}