adds flushes to the output stream of teamcity reporter, making the test output more responsive.

This commit is contained in:
Sebastian Grottel 2017-10-16 08:55:51 +02:00 committed by Martin Hořeňovský
parent 296955c437
commit c9d9699ca8

View File

@ -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: