diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2020-07-21 12:10:32 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2020-07-24 00:52:01 +0200 |
commit | af7a3430edfc4deff494c9ec88b803f468b5cf2a (patch) | |
tree | 2ff7efa23349f7aea53a5525f45b0e6b8444b8d7 /tests/auto/testlib/selftests/expected_silent.junitxml | |
parent | 67c877562b18ea5c591d2884d2b14f7bf3a39149 (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_silent.junitxml')
-rw-r--r-- | tests/auto/testlib/selftests/expected_silent.junitxml | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/auto/testlib/selftests/expected_silent.junitxml b/tests/auto/testlib/selftests/expected_silent.junitxml index 266641d88d..10d8151d2e 100644 --- a/tests/auto/testlib/selftests/expected_silent.junitxml +++ b/tests/auto/testlib/selftests/expected_silent.junitxml @@ -1,25 +1,25 @@ <?xml version="1.0" encoding="UTF-8" ?> -<testsuite name="tst_Silent" tests="7" failures="3" errors="9"> +<testsuite name="tst_Silent" timestamp="@TEST_START_TIME@" tests="7" failures="3" errors="9" 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="pass" result="pass"/> - <testcase name="skip"> + <testcase name="initTestCase" result="pass" time="@TEST_DURATION@"/> + <testcase name="pass" result="pass" time="@TEST_DURATION@"/> + <testcase name="skip" time="@TEST_DURATION@"> <!-- type="skip" message="This test should skip" --> </testcase> - <testcase name="fail" result="fail"> + <testcase name="fail" result="fail" time="@TEST_DURATION@"> <failure result="fail" message="'false' returned FALSE. (This test should fail)"/> </testcase> - <testcase name="xfail" result="xfail"> + <testcase name="xfail" result="xfail" time="@TEST_DURATION@"> <!-- type="info" message="This test should XFAIL" --> </testcase> - <testcase name="xpass" result="xpass"> + <testcase name="xpass" result="xpass" time="@TEST_DURATION@"> <failure result="xpass" message="'true' returned TRUE unexpectedly. (This test should XPASS)"/> </testcase> - <testcase name="messages" result="fail"> + <testcase name="messages" result="fail" time="@TEST_DURATION@"> <!-- type="qwarn" message="This is a warning that should not appear in silent test output" --> <!-- type="warn" message="This is an internal testlib warning that should not appear in silent test output" --> <!-- type="qdebug" message="This is a debug message that should not appear in silent test output" --> |