diff options
author | Borgar Ovsthus <borgar.ovsthus@fmcti.com> | 2016-01-06 18:20:29 +0100 |
---|---|---|
committer | Borgar Øvsthus <borgar.ovsthus@fmcti.com> | 2016-01-23 18:30:58 +0000 |
commit | fbd6acedac8e1f4ee624cb713055fcad1ceabf96 (patch) | |
tree | 37ab3e2e7ec82f5cd641c8ddfc38566b17b7fa72 /src/testlib/qtestlog.cpp | |
parent | 9eda09f511246720a8c4eff2bbb52bbfacc36f48 (diff) |
Add TeamCity logging feature to testlib
This allows TeamCity to parse realtime test-results instead of using
post-build XML Report Processing. This does not support logging of
benchmarks.
[ChangeLog][QTest] Added a new logging mode that allow test-results to
be parsed on-the-fly when using Jetbrains TeamCity as CI-server. This
mode is enabled by using the -teamcity option on the command-line.
Change-Id: Ie730beb643043eb0f448f99abe6c0b5ac48aaf03
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/testlib/qtestlog.cpp')
-rw-r--r-- | src/testlib/qtestlog.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/testlib/qtestlog.cpp b/src/testlib/qtestlog.cpp index ab370786bd..5bbf2c6458 100644 --- a/src/testlib/qtestlog.cpp +++ b/src/testlib/qtestlog.cpp @@ -46,6 +46,7 @@ #include <QtTest/private/qcsvbenchmarklogger_p.h> #include <QtTest/private/qxunittestlogger_p.h> #include <QtTest/private/qxmltestlogger_p.h> +#include <QtTest/private/qteamcitylogger_p.h> #if defined(HAVE_XCTEST) #include <QtTest/private/qxctestlogger_p.h> #endif @@ -500,6 +501,9 @@ void QTestLog::addLogger(LogMode mode, const char *filename) case QTestLog::XunitXML: logger = new QXunitTestLogger(filename); break; + case QTestLog::TeamCity: + logger = new QTeamCityLogger(filename); + break; #if defined(HAVE_XCTEST) case QTestLog::XCTest: logger = new QXcodeTestLogger; |