qt5base-lts/tests/auto/testlib/selftests/expected_skip.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

28 lines
1.1 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<testsuite name="tst_Skip" timestamp="@TEST_START_TIME@" tests="5" failures="0" errors="4" 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="test" time="@TEST_DURATION@">
<!-- type="skip" message="skipping all" -->
</testcase>
<testcase name="emptytest" time="@TEST_DURATION@">
<!-- type="skip" message="skipping all" -->
</testcase>
<testcase name="singleSkip" result="pass" time="@TEST_DURATION@">
<!-- type="skip" message="skipping one" tag="local 1" -->
<!-- type="qdebug" message="this line should only be reached once (true)" tag="local 2" -->
</testcase>
<testcase name="cleanupTestCase" result="pass" time="@TEST_DURATION@"/>
<system-out>
<![CDATA[skipping all]]>
<![CDATA[skipping all]]>
<![CDATA[skipping one]]>
<![CDATA[this line should only be reached once (true)]]>
</system-out>
<system-err/>
</testsuite>