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

46 lines
2.7 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<testsuite name="tst_Silent" timestamp="@TEST_START_TIME@" tests="7" failures="3" errors="9" 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="pass" result="pass" time="@TEST_DURATION@"/>
<testcase name="skip" time="@TEST_DURATION@">
<!-- type="skip" message="This test should skip" -->
</testcase>
<testcase name="fail" result="fail" time="@TEST_DURATION@">
<failure result="fail" message="&apos;false&apos; returned FALSE. (This test should fail)"/>
</testcase>
<testcase name="xfail" result="xfail" time="@TEST_DURATION@">
<!-- type="info" message="This test should XFAIL" -->
</testcase>
<testcase name="xpass" result="xpass" time="@TEST_DURATION@">
<failure result="xpass" message="&apos;true&apos; returned TRUE unexpectedly. (This test should XPASS)"/>
</testcase>
<testcase name="messages" result="fail" time="@TEST_DURATION@">
<!-- type="qwarn" message="This is a warning that should not appear in silent test output" -->
<!-- type="warn" message="This is an internal testlib warning that should not appear in silent test output" -->
<!-- type="qdebug" message="This is a debug message that should not appear in silent test output" -->
<!-- type="system" message="This is a critical message that should not appear in silent test output" -->
<!-- type="qinfo" message="This is an info message that should not appear in silent test output" -->
<!-- type="info" message="This is an internal testlib info message that should not appear in silent test output" -->
<!-- type="qfatal" message="This is a fatal error message that should still appear in silent test output" -->
<failure result="fail" message="Received a fatal error."/>
</testcase>
<system-out>
<![CDATA[This test should skip]]>
<![CDATA[This test should XFAIL]]>
<![CDATA[This is a debug message that should not appear in silent test output]]>
<![CDATA[This is a critical message that should not appear in silent test output]]>
<![CDATA[This is an info message that should not appear in silent test output]]>
<![CDATA[This is an internal testlib info message that should not appear in silent test output]]>
</system-out>
<system-err>
<![CDATA[This is a warning that should not appear in silent test output]]>
<![CDATA[This is an internal testlib warning that should not appear in silent test output]]>
<![CDATA[This is a fatal error message that should still appear in silent test output]]>
</system-err>
</testsuite>