From fbd6acedac8e1f4ee624cb713055fcad1ceabf96 Mon Sep 17 00:00:00 2001 From: Borgar Ovsthus Date: Wed, 6 Jan 2016 18:20:29 +0100 Subject: 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 --- .../auto/testlib/selftests/expected_datetime.teamcity | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests/auto/testlib/selftests/expected_datetime.teamcity (limited to 'tests/auto/testlib/selftests/expected_datetime.teamcity') diff --git a/tests/auto/testlib/selftests/expected_datetime.teamcity b/tests/auto/testlib/selftests/expected_datetime.teamcity new file mode 100644 index 0000000000..4a4909b001 --- /dev/null +++ b/tests/auto/testlib/selftests/expected_datetime.teamcity @@ -0,0 +1,19 @@ +##teamcity[testSuiteStarted name='tst_DateTime'] +##teamcity[testStarted name='initTestCase()'] +##teamcity[testFinished name='initTestCase()'] +##teamcity[testStarted name='dateTime()'] +##teamcity[testFailed name='dateTime()' message='Failure! |[Loc: tst_datetime.cpp(57)|]' details='Compared values are not the same|n Actual (local): 2000/05/03 04:03:04.000|[UTC+00:02|]|n Expected (utc) : 2000/05/03 04:03:04.000|[UTC|]'] +##teamcity[testFinished name='dateTime()'] +##teamcity[testStarted name='qurl(empty urls)'] +##teamcity[testFinished name='qurl(empty urls)'] +##teamcity[testStarted name='qurl(empty rhs)'] +##teamcity[testFailed name='qurl(empty rhs)' message='Failure! |[Loc: tst_datetime.cpp(65)|]' details='Compared values are not the same|n Actual (operandA): http://example.com|n Expected (operandB): Invalid URL:'] +##teamcity[testFinished name='qurl(empty rhs)'] +##teamcity[testStarted name='qurl(empty lhs)'] +##teamcity[testFailed name='qurl(empty lhs)' message='Failure! |[Loc: tst_datetime.cpp(65)|]' details='Compared values are not the same|n Actual (operandA): Invalid URL: |n Expected (operandB): http://example.com'] +##teamcity[testFinished name='qurl(empty lhs)'] +##teamcity[testStarted name='qurl(same urls)'] +##teamcity[testFinished name='qurl(same urls)'] +##teamcity[testStarted name='cleanupTestCase()'] +##teamcity[testFinished name='cleanupTestCase()'] +##teamcity[testSuiteFinished name='tst_DateTime'] -- cgit v1.2.3