summaryrefslogtreecommitdiffstats
path: root/tests/auto/testlib/selftests/expected_skipinit.junitxml
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2021-07-29 17:37:58 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2021-08-05 03:58:50 +0200
commitfb16a66b71250f83a9249a0a04064f56d70c9fd3 (patch)
tree369dce7ece617e57442753a02be12ab559163bab /tests/auto/testlib/selftests/expected_skipinit.junitxml
parent58f1c0c146aa678b8140cc17388b5e7f3997fcc6 (diff)
testlib: Report skipped tests in JUnit reporter as <skipped> elements
The Apache Ant and Surefire Maven specs document a <skipped> element that can be used to signify skipped test, with a corresponding total skipped test attribute on the <testsuite>. The element includes an optional message attribute, documented in the Surefire spec, and in the Ant source code, but not yet documented in the reverse-engineered Ant spec: https://github.com/windyroad/JUnit-Schema/pull/11 Pick-to: 6.2 Task-number: QTBUG-95424 Change-Id: Ib6417a41b9c328836f4017e6ebf7f7e9cd91288d Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'tests/auto/testlib/selftests/expected_skipinit.junitxml')
-rw-r--r--tests/auto/testlib/selftests/expected_skipinit.junitxml8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/auto/testlib/selftests/expected_skipinit.junitxml b/tests/auto/testlib/selftests/expected_skipinit.junitxml
index 803e5e2749..f7d2b5a124 100644
--- a/tests/auto/testlib/selftests/expected_skipinit.junitxml
+++ b/tests/auto/testlib/selftests/expected_skipinit.junitxml
@@ -1,16 +1,14 @@
<?xml version="1.0" encoding="UTF-8" ?>
-<testsuite name="tst_SkipInit" timestamp="@TEST_START_TIME@" hostname="@HOSTNAME@" tests="2" failures="0" errors="0" time="@TEST_DURATION@">
+<testsuite name="tst_SkipInit" timestamp="@TEST_START_TIME@" hostname="@HOSTNAME@" tests="2" failures="0" errors="0" skipped="1" 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" classname="tst_SkipInit" time="@TEST_DURATION@">
- <!-- type="skip" message="Skip inside initTestCase. This should skip all tests in the class." -->
+ <skipped message="Skip inside initTestCase. This should skip all tests in the class."/>
</testcase>
<testcase name="cleanupTestCase" classname="tst_SkipInit" time="@TEST_DURATION@"/>
- <system-out>
-<![CDATA[Skip inside initTestCase. This should skip all tests in the class.]]>
- </system-out>
+ <system-out/>
<system-err/>
</testsuite>