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

90 lines
4.1 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<testsuite name="tst_Subtest" timestamp="@TEST_START_TIME@" tests="5" failures="2" errors="31" 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@">
<!-- type="qdebug" message="initTestCase initTestCase (null)" -->
</testcase>
<testcase name="test1" result="pass" time="@TEST_DURATION@">
<!-- type="qdebug" message="init test1 (null)" -->
<!-- type="qdebug" message="test1 test1 (null)" -->
<!-- type="qdebug" message="cleanup test1 (null)" -->
</testcase>
<testcase name="test2" result="pass" time="@TEST_DURATION@">
<!-- type="qdebug" message="test2_data test2 (null)" -->
<!-- type="qdebug" message="test2_data end" -->
<!-- type="qdebug" message="init test2 data0" tag="data0" -->
<!-- type="qdebug" message="test2 test2 data0" tag="data0" -->
<!-- type="qdebug" message="test2 end" tag="data0" -->
<!-- type="qdebug" message="cleanup test2 data0" tag="data0" -->
<!-- type="qdebug" message="init test2 data1" tag="data1" -->
<!-- type="qdebug" message="test2 test2 data1" tag="data1" -->
<!-- type="qdebug" message="test2 end" tag="data1" -->
<!-- type="qdebug" message="cleanup test2 data1" tag="data1" -->
<!-- type="qdebug" message="init test2 data2" tag="data2" -->
<!-- type="qdebug" message="test2 test2 data2" tag="data2" -->
<!-- type="qdebug" message="test2 end" tag="data2" -->
<!-- type="qdebug" message="cleanup test2 data2" tag="data2" -->
</testcase>
<testcase name="test3" result="fail" time="@TEST_DURATION@">
<!-- type="qdebug" message="test3_data test3 (null)" -->
<!-- type="qdebug" message="test3_data end" -->
<!-- type="qdebug" message="init test3 data0" tag="data0" -->
<!-- type="qdebug" message="test2 test3 data0" tag="data0" -->
<!-- type="qdebug" message="test2 end" tag="data0" -->
<!-- type="qdebug" message="cleanup test3 data0" tag="data0" -->
<!-- type="qdebug" message="init test3 data1" tag="data1" -->
<!-- type="qdebug" message="test2 test3 data1" tag="data1" -->
<failure result="fail" message="Compared values are not the same
Actual (str) : &quot;hello1&quot;
Expected (QString(&quot;hello0&quot;)): &quot;hello0&quot;" tag="data1"/>
<!-- type="qdebug" message="cleanup test3 data1" tag="data1" -->
<!-- type="qdebug" message="init test3 data2" tag="data2" -->
<!-- type="qdebug" message="test2 test3 data2" tag="data2" -->
<failure result="fail" message="Compared values are not the same
Actual (str) : &quot;hello2&quot;
Expected (QString(&quot;hello0&quot;)): &quot;hello0&quot;" tag="data2"/>
<!-- type="qdebug" message="cleanup test3 data2" tag="data2" -->
</testcase>
<testcase name="cleanupTestCase" result="pass" time="@TEST_DURATION@">
<!-- type="qdebug" message="cleanupTestCase cleanupTestCase (null)" -->
</testcase>
<system-out>
<![CDATA[initTestCase initTestCase (null)]]>
<![CDATA[init test1 (null)]]>
<![CDATA[test1 test1 (null)]]>
<![CDATA[cleanup test1 (null)]]>
<![CDATA[test2_data test2 (null)]]>
<![CDATA[test2_data end]]>
<![CDATA[init test2 data0]]>
<![CDATA[test2 test2 data0]]>
<![CDATA[test2 end]]>
<![CDATA[cleanup test2 data0]]>
<![CDATA[init test2 data1]]>
<![CDATA[test2 test2 data1]]>
<![CDATA[test2 end]]>
<![CDATA[cleanup test2 data1]]>
<![CDATA[init test2 data2]]>
<![CDATA[test2 test2 data2]]>
<![CDATA[test2 end]]>
<![CDATA[cleanup test2 data2]]>
<![CDATA[test3_data test3 (null)]]>
<![CDATA[test3_data end]]>
<![CDATA[init test3 data0]]>
<![CDATA[test2 test3 data0]]>
<![CDATA[test2 end]]>
<![CDATA[cleanup test3 data0]]>
<![CDATA[init test3 data1]]>
<![CDATA[test2 test3 data1]]>
<![CDATA[cleanup test3 data1]]>
<![CDATA[init test3 data2]]>
<![CDATA[test2 test3 data2]]>
<![CDATA[cleanup test3 data2]]>
<![CDATA[cleanupTestCase cleanupTestCase (null)]]>
</system-out>
<system-err/>
</testsuite>