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
adds flushes to the output stream of teamcity reporter, making the test output more responsive.
- Commit
c9d9699ca8733fc4646a0df5a046eee54681eaf1- Author
- Sebastian Grottel ·
- Committer
- Martin Hořeňovský
- Parents
296955c437f2
Changes
include/reporters/catch_reporter_teamcity.hpp | 3 +++ 1 file changed, 3 insertions(+) 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: