Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorSebastian Grottel2017-10-16 08:55:51 +0200
committerMartin Hořeňovský2017-10-31 14:27:47 +0100
commitc1a91caf004be65b3e6c68376b552a38742aa43e (patch)
tree1e63e05e5af1f2bb6f095480c33f25582d1db476 /include
parent96c5de678d538e4e9b95c7f06afa03e3d0a0b15e (diff)
downloadcatch3-c1a91caf004be65b3e6c68376b552a38742aa43e.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.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/reporters/catch_reporter_teamcity.hpp b/include/reporters/catch_reporter_teamcity.hpp
index d17026a8..6c7b3d18 100644
--- a/include/reporters/catch_reporter_teamcity.hpp
+++ b/include/reporters/catch_reporter_teamcity.hpp
@@ -133,6 +133,7 @@ namespace Catch {
<< "]\n";
}
}
+ stream.flush();
return true;
}
@@ -146,6 +147,7 @@ namespace Catch {
StreamingReporterBase::testCaseStarting( testInfo );
stream << "##teamcity[testStarted name='"
<< escape( testInfo.name ) << "']\n";
+ stream.flush();
}
void testCaseEnded( TestCaseStats const& testCaseStats ) override {
@@ -161,6 +163,7 @@ namespace Catch {
stream << "##teamcity[testFinished name='"
<< escape( testCaseStats.testInfo.name ) << "' duration='"
<< m_testTimer.getElapsedMilliseconds() << "']\n";
+ stream.flush();
}
private: