diff options
| author | Phil Nash | 2017-02-06 16:14:06 +0000 |
|---|---|---|
| committer | Phil Nash | 2017-02-06 16:14:06 +0000 |
| commit | 23eb4cc5804a1cf3a88365c47baf94063f081496 (patch) | |
| tree | fee6197000055234fa1c0b614d3283913a9b1497 /include | |
| parent | a189387f49f129a3554c47426a0dfe176c5c0781 (diff) | |
| download | catch3-23eb4cc5804a1cf3a88365c47baf94063f081496.tar.gz | |
Added stdout and stderr to XML Reporter
Diffstat (limited to 'include')
| -rw-r--r-- | include/reporters/catch_reporter_xml.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/reporters/catch_reporter_xml.hpp b/include/reporters/catch_reporter_xml.hpp index c470ceb0..df6eb07c 100644 --- a/include/reporters/catch_reporter_xml.hpp +++ b/include/reporters/catch_reporter_xml.hpp @@ -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(); } |