diff options
| author | Sebastian Grottel | 2017-10-16 08:55:51 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2017-10-17 16:42:05 +0200 |
| commit | c9d9699ca8733fc4646a0df5a046eee54681eaf1 (patch) | |
| tree | 38f7bb59bf907ef242f24118f1539c8a419541e3 /include | |
| parent | 296955c437f29addaf6c5cbfeb47a606b96a5ab1 (diff) | |
| download | catch3-c9d9699ca8733fc4646a0df5a046eee54681eaf1.tar.gz | |
adds flushes to the output stream of teamcity reporter, making the test output more responsive.
Diffstat (limited to 'include')
| -rw-r--r-- | include/reporters/catch_reporter_teamcity.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/reporters/catch_reporter_teamcity.hpp b/include/reporters/catch_reporter_teamcity.hpp index 81a5dee9..af3505bd 100644 --- a/include/reporters/catch_reporter_teamcity.hpp +++ b/include/reporters/catch_reporter_teamcity.hpp @@ -141,6 +141,7 @@ namespace Catch { << "]\n"; } } + stream.flush(); return true; } @@ -154,6 +155,7 @@ namespace Catch { StreamingReporterBase::testCaseStarting( testInfo ); stream << "##teamcity[testStarted name='" << escape( testInfo.name ) << "']\n"; + stream.flush(); } virtual void testCaseEnded( TestCaseStats const& testCaseStats ) CATCH_OVERRIDE { @@ -169,6 +171,7 @@ namespace Catch { stream << "##teamcity[testFinished name='" << escape( testCaseStats.testInfo.name ) << "' duration='" << m_testTimer.getElapsedMilliseconds() << "']\n"; + stream.flush(); } private: |