diff options
| author | Martin Hořeňovský | 2017-05-16 16:09:51 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2017-05-16 16:09:51 +0200 |
| commit | 0bb8e1247ef91a3c58d34a5e9bf22fd8aa0c8105 (patch) | |
| tree | d7d5b7d237cb1e4512580f6aed2e40abd4798e3b /include | |
| parent | 32d97caf4229e80ae3409bc7c2f19f9bacdce3df (diff) | |
| parent | d8f45cd5f14204e1bd1a922d17f2ab1cd005a34a (diff) | |
| download | catch3-0bb8e1247ef91a3c58d34a5e9bf22fd8aa0c8105.tar.gz | |
Merge branch 'master' of https://github.com/awglyde/Catch
Diffstat (limited to 'include')
| -rw-r--r-- | include/reporters/catch_reporter_teamcity.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/reporters/catch_reporter_teamcity.hpp b/include/reporters/catch_reporter_teamcity.hpp index e685a6ad..81a5dee9 100644 --- a/include/reporters/catch_reporter_teamcity.hpp +++ b/include/reporters/catch_reporter_teamcity.hpp @@ -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"; @@ -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: @@ -205,6 +207,7 @@ namespace Catch { } private: bool m_headerPrintedForThisSection; + Timer m_testTimer; }; #ifdef CATCH_IMPL |