qt5base-lts/tests/auto/testlib/selftests/expected_expectfail.junitxml
Friedemann Kleint 539553a572 QTestlib/JUnit XML: Log most messages to standard output instead of error output
Add an enumeration for system-out and alog element
for it. Redirect the messages types that are not warnings/errors
to this element. For compatibility, write it out only
if it is not empty. Rename enumerations and members accordingly.

[ChangeLog][QtTestLib] In JUnit XML, output that is
not a warning/error is now logged under <system-out>
instead of <system-err>.

Fixes: QTBUG-86540
Change-Id: I55598eafa7dafa486ac5a8221029c332ff47413b
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2021-01-15 18:05:40 +01:00

69 lines
3.3 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<testsuite name="tst_ExpectFail" timestamp="@TEST_START_TIME@" tests="14" failures="6" errors="13" 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" time="@TEST_DURATION@"/>
<testcase name="xfailAndContinue" result="xfail" time="@TEST_DURATION@">
<!-- type="qdebug" message="begin" -->
<!-- type="info" message="This should xfail" -->
<!-- type="qdebug" message="after" -->
</testcase>
<testcase name="xfailAndAbort" result="xfail" time="@TEST_DURATION@">
<!-- type="qdebug" message="begin" -->
<!-- type="info" message="This should xfail" -->
</testcase>
<testcase name="xfailTwice" result="fail" time="@TEST_DURATION@">
<failure result="fail" message="Already expecting a fail"/>
</testcase>
<testcase name="xfailWithQString" result="xfail" time="@TEST_DURATION@">
<!-- type="info" message="A string" -->
<!-- type="info" message="Bug 5 (The message)" -->
</testcase>
<testcase name="xfailDataDrivenWithQVerify" result="xfail" time="@TEST_DURATION@">
<!-- type="info" message="This test should xfail" tag="Abort" -->
<!-- type="info" message="This test should xfail" tag="Continue" -->
</testcase>
<testcase name="xfailDataDrivenWithQCompare" result="xfail" time="@TEST_DURATION@">
<!-- type="info" message="This test should xfail" tag="Abort" -->
<!-- type="info" message="This test should xfail" tag="Continue" -->
</testcase>
<testcase name="xfailOnWrongRow" result="pass" time="@TEST_DURATION@"/>
<testcase name="xfailOnAnyRow" result="xfail" time="@TEST_DURATION@">
<!-- type="info" message="This test should xfail" tag="first row" -->
<!-- type="info" message="This test should xfail" tag="second row" -->
</testcase>
<testcase name="xfailWithoutVerify" result="fail" time="@TEST_DURATION@">
<failure result="fail" message="QEXPECT_FAIL was called without any subsequent verification statements" tag="first row"/>
<failure result="fail" message="QEXPECT_FAIL was called without any subsequent verification statements" tag="second row"/>
</testcase>
<testcase name="xpass" result="xpass" time="@TEST_DURATION@">
<failure result="xpass" message="&apos;true&apos; returned TRUE unexpectedly. ()"/>
</testcase>
<testcase name="xpassDataDrivenWithQVerify" result="xpass" time="@TEST_DURATION@">
<failure result="xpass" message="&apos;true&apos; returned TRUE unexpectedly. ()" tag="XPass"/>
</testcase>
<testcase name="xpassDataDrivenWithQCompare" result="xpass" time="@TEST_DURATION@">
<failure result="xpass" message="QCOMPARE(1, 1) returned TRUE unexpectedly." tag="XPass"/>
</testcase>
<testcase name="cleanupTestCase" result="pass" time="@TEST_DURATION@"/>
<system-out>
<![CDATA[begin]]>
<![CDATA[This should xfail]]>
<![CDATA[after]]>
<![CDATA[begin]]>
<![CDATA[This should xfail]]>
<![CDATA[A string]]>
<![CDATA[Bug 5 (The message)]]>
<![CDATA[This test should xfail]]>
<![CDATA[This test should xfail]]>
<![CDATA[This test should xfail]]>
<![CDATA[This test should xfail]]>
<![CDATA[This test should xfail]]>
<![CDATA[This test should xfail]]>
</system-out>
<system-err/>
</testsuite>