Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/awglyde/Catch
Browse files Browse the repository at this point in the history
  • Loading branch information
horenmar committed May 16, 2017
2 parents 32d97ca + d8f45cd commit 0bb8e12
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/reporters/catch_reporter_teamcity.hpp
Expand Up @@ -150,6 +150,7 @@ namespace Catch {
}

virtual void testCaseStarting( TestCaseInfo const& testInfo ) CATCH_OVERRIDE {
m_testTimer.start();
StreamingReporterBase::testCaseStarting( testInfo );
stream << "##teamcity[testStarted name='"
<< escape( testInfo.name ) << "']\n";
Expand All @@ -166,7 +167,8 @@ namespace Catch {
<< escape( testCaseStats.testInfo.name )
<< "' out='" << escape( testCaseStats.stdErr ) << "']\n";
stream << "##teamcity[testFinished name='"
<< escape( testCaseStats.testInfo.name ) << "']\n";
<< escape( testCaseStats.testInfo.name ) << "' duration='"
<< m_testTimer.getElapsedMilliseconds() << "']\n";
}

private:
Expand Down Expand Up @@ -205,6 +207,7 @@ namespace Catch {
}
private:
bool m_headerPrintedForThisSection;
Timer m_testTimer;
};

#ifdef CATCH_IMPL
Expand Down

0 comments on commit 0bb8e12

Please sign in to comment.