diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2020-07-22 01:38:42 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2020-07-24 00:51:54 +0200 |
commit | 67c877562b18ea5c591d2884d2b14f7bf3a39149 (patch) | |
tree | efac919ee2f72dacb1df53896754d501640890a2 /tests/auto/testlib/selftests/expected_skip.junitxml | |
parent | c70d693378b8110c09fdd18d7a4a22e8bd1b98d9 (diff) |
testlib: Output JUnitXML attributes in right order
The attributes are, like the elements, maintained in reverse
order in the underlying QTestCoreList, so we need to iterate
them backwards when printing out the resulting XML to reflect
the order they were added.
This results in e.g.:
<testcase name="passingBenchmark" result="pass">
Instead of:
<testcase result="pass" name="passingBenchmark">
Change-Id: Ic2eeab8de05ffedd0c41977358d5b40ff77878b1
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'tests/auto/testlib/selftests/expected_skip.junitxml')
-rw-r--r-- | tests/auto/testlib/selftests/expected_skip.junitxml | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/auto/testlib/selftests/expected_skip.junitxml b/tests/auto/testlib/selftests/expected_skip.junitxml index 63e582f96a..27e1324e2c 100644 --- a/tests/auto/testlib/selftests/expected_skip.junitxml +++ b/tests/auto/testlib/selftests/expected_skip.junitxml @@ -1,22 +1,22 @@ <?xml version="1.0" encoding="UTF-8" ?> -<testsuite errors="4" failures="0" tests="5" name="tst_Skip"> +<testsuite name="tst_Skip" tests="5" failures="0" errors="4"> <properties> - <property value="@INSERT_QT_VERSION_HERE@" name="QTestVersion"/> - <property value="@INSERT_QT_VERSION_HERE@" name="QtVersion"/> - <property value="" name="QtBuild"/> + <property name="QTestVersion" value="@INSERT_QT_VERSION_HERE@"/> + <property name="QtVersion" value="@INSERT_QT_VERSION_HERE@"/> + <property name="QtBuild" value=""/> </properties> - <testcase result="pass" name="initTestCase"/> + <testcase name="initTestCase" result="pass"/> <testcase name="test"> - <!-- message="skipping all" type="skip" --> + <!-- type="skip" message="skipping all" --> </testcase> <testcase name="emptytest"> - <!-- message="skipping all" type="skip" --> + <!-- type="skip" message="skipping all" --> </testcase> - <testcase result="pass" name="singleSkip"> - <!-- tag="local 1" message="skipping one" type="skip" --> - <!-- tag="local 2" message="this line should only be reached once (true)" type="qdebug" --> + <testcase name="singleSkip" result="pass"> + <!-- type="skip" message="skipping one" tag="local 1" --> + <!-- type="qdebug" message="this line should only be reached once (true)" tag="local 2" --> </testcase> - <testcase result="pass" name="cleanupTestCase"/> + <testcase name="cleanupTestCase" result="pass"/> <system-err> <![CDATA[skipping all]]> <![CDATA[skipping all]]> |