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
reports test case if stdout/ stderr written to, even if it succeeded
- Commit
cc0ed3a988a8aa95a1a4169aaf968bc8f4afb71b- Author
- Phil Nash ·
- Parents
f9cc21a1743f
Changes
catch_reporter_basic.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/catch_reporter_basic.hpp b/catch_reporter_basic.hpp index add09b60..4cf04200 100644 --- a/catch_reporter_basic.hpp +++ b/catch_reporter_basic.hpp @@ -236,10 +236,16 @@ namespace Catch ) { if( !stdOut.empty() ) + { + StartSpansLazily(); m_config.stream() << "[stdout: " << trim( stdOut ) << "]\n"; + } if( !stdErr.empty() ) + { + StartSpansLazily(); m_config.stream() << "[stderr: " << trim( stdErr ) << "]\n"; + } if( m_testSpan.emitted ) {