summaryrefslogtreecommitdiffstats
path: root/tests/auto/testlib/selftests/expected_xunit.junitxml
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-07-21 12:10:32 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-07-24 00:52:01 +0200
commitaf7a3430edfc4deff494c9ec88b803f468b5cf2a (patch)
tree2ff7efa23349f7aea53a5525f45b0e6b8444b8d7 /tests/auto/testlib/selftests/expected_xunit.junitxml
parent67c877562b18ea5c591d2884d2b14f7bf3a39149 (diff)
testlib: Add start time and test duration to JUnit XML
As defined by https://llg.cubic.org/docs/junit/ Change-Id: Ic7683f3d49c529674f8467d591528d4a65d3add8 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'tests/auto/testlib/selftests/expected_xunit.junitxml')
-rw-r--r--tests/auto/testlib/selftests/expected_xunit.junitxml20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/auto/testlib/selftests/expected_xunit.junitxml b/tests/auto/testlib/selftests/expected_xunit.junitxml
index 263681d6bc..817f85e7f0 100644
--- a/tests/auto/testlib/selftests/expected_xunit.junitxml
+++ b/tests/auto/testlib/selftests/expected_xunit.junitxml
@@ -1,36 +1,36 @@
<?xml version="1.0" encoding="UTF-8" ?>
-<testsuite name="tst_Xunit" tests="9" failures="3" errors="5">
+<testsuite name="tst_Xunit" timestamp="@TEST_START_TIME@" tests="9" failures="3" errors="5" time="@TEST_DURATION@">
<properties>
<property name="QTestVersion" value="@INSERT_QT_VERSION_HERE@"/>
<property name="QtVersion" value="@INSERT_QT_VERSION_HERE@"/>
<property name="QtBuild" value=""/>
</properties>
- <testcase name="initTestCase" result="pass"/>
- <testcase name="testFunc1" result="pass">
+ <testcase name="initTestCase" result="pass" time="@TEST_DURATION@"/>
+ <testcase name="testFunc1" result="pass" time="@TEST_DURATION@">
<!-- type="warn" message="just a QWARN() !" -->
</testcase>
- <testcase name="testFunc2" result="fail">
+ <testcase name="testFunc2" result="fail" time="@TEST_DURATION@">
<!-- type="qdebug" message="a qDebug() call with comment&#x002D;ending stuff &#x002D;&#x002D;&gt;" -->
<failure result="fail" message="Compared values are not the same
Actual (2): 2
Expected (3): 3"/>
</testcase>
- <testcase name="testFunc3">
+ <testcase name="testFunc3" time="@TEST_DURATION@">
<!-- type="skip" message="skipping this function!" -->
</testcase>
- <testcase name="testFunc4" result="fail">
+ <testcase name="testFunc4" result="fail" time="@TEST_DURATION@">
<failure result="fail" message="a forced failure!"/>
</testcase>
- <testcase name="testFunc5" result="xfail">
+ <testcase name="testFunc5" result="xfail" time="@TEST_DURATION@">
<!-- type="info" message="this failure is expected" -->
</testcase>
- <testcase name="testFunc6" result="xfail">
+ <testcase name="testFunc6" result="xfail" time="@TEST_DURATION@">
<!-- type="info" message="this failure is also expected" -->
</testcase>
- <testcase name="testFunc7" result="xpass">
+ <testcase name="testFunc7" result="xpass" time="@TEST_DURATION@">
<failure result="xpass" message="&apos;true&apos; returned TRUE unexpectedly. ()"/>
</testcase>
- <testcase name="cleanupTestCase" result="pass"/>
+ <testcase name="cleanupTestCase" result="pass" time="@TEST_DURATION@"/>
<system-err>
<![CDATA[just a QWARN() !]]>
<![CDATA[a qDebug() call with comment-ending stuff -->]]>