qt5base-lts/tests/auto/testlib/selftests/expected_junit.junitxml
Tor Arne Vestbø 58f1c0c146 testlib: Don't report JUnit errors attribute without any <error> elements
The errors attribute on the <testsuite> element represents the number of
<error> elements, but we do not produce any at the moment.

Pick-to: 6.2
Task-number: QTBUG-95424
Change-Id: I7196d622a9a6bbb7e79ed2c2886984d539abb1da
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
2021-08-05 03:58:50 +02:00

44 lines
2.0 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<testsuite name="tst_JUnit" timestamp="@TEST_START_TIME@" hostname="@HOSTNAME@" tests="9" failures="3" errors="0" 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_JUnit" time="@TEST_DURATION@"/>
<testcase name="testFunc1" classname="tst_JUnit" time="@TEST_DURATION@">
<!-- type="qwarn" message="just a qWarning() !" -->
</testcase>
<testcase name="testFunc2" classname="tst_JUnit" time="@TEST_DURATION@">
<!-- type="qdebug" message="a qDebug() call with comment&#x002D;ending stuff &#x002D;&#x002D;&gt;" -->
<failure type="fail" message="Compared values are not the same
Actual (2): 2
Expected (3): 3"/>
</testcase>
<testcase name="testFunc3" classname="tst_JUnit" time="@TEST_DURATION@">
<!-- type="skip" message="skipping this function!" -->
</testcase>
<testcase name="testFunc4" classname="tst_JUnit" time="@TEST_DURATION@">
<failure type="fail" message="a forced failure!"/>
</testcase>
<testcase name="testFunc5" classname="tst_JUnit" time="@TEST_DURATION@">
<!-- type="info" message="this failure is expected" -->
</testcase>
<testcase name="testFunc6" classname="tst_JUnit" time="@TEST_DURATION@">
<!-- type="info" message="this failure is also expected" -->
</testcase>
<testcase name="testFunc7" classname="tst_JUnit" time="@TEST_DURATION@">
<failure type="xpass" message="&apos;true&apos; returned TRUE unexpectedly. ()"/>
</testcase>
<testcase name="cleanupTestCase" classname="tst_JUnit" time="@TEST_DURATION@"/>
<system-out>
<![CDATA[a qDebug() call with comment-ending stuff -->]]>
<![CDATA[skipping this function!]]>
<![CDATA[this failure is expected]]>
<![CDATA[this failure is also expected]]>
</system-out>
<system-err>
<![CDATA[just a qWarning() !]]>
</system-err>
</testsuite>