539553a572
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>
67 lines
3.2 KiB
XML
67 lines
3.2 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<testsuite name="tst_Counting" timestamp="@TEST_START_TIME@" tests="15" failures="8" errors="10" 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="testPassPass" result="pass" time="@TEST_DURATION@"/>
|
|
<testcase name="testPassSkip" result="pass" time="@TEST_DURATION@">
|
|
<!-- type="skip" message="Skipping" tag="row 2" -->
|
|
</testcase>
|
|
<testcase name="testPassFail" result="fail" time="@TEST_DURATION@">
|
|
<failure result="fail" message="'false' returned FALSE. ()" tag="row 2"/>
|
|
</testcase>
|
|
<testcase name="testSkipPass" result="pass" time="@TEST_DURATION@">
|
|
<!-- type="skip" message="Skipping" tag="row 1" -->
|
|
</testcase>
|
|
<testcase name="testSkipSkip" time="@TEST_DURATION@">
|
|
<!-- type="skip" message="Skipping" tag="row 1" -->
|
|
<!-- type="skip" message="Skipping" tag="row 2" -->
|
|
</testcase>
|
|
<testcase name="testSkipFail" result="fail" time="@TEST_DURATION@">
|
|
<!-- type="skip" message="Skipping" tag="row 1" -->
|
|
<failure result="fail" message="'false' returned FALSE. ()" tag="row 2"/>
|
|
</testcase>
|
|
<testcase name="testFailPass" result="fail" time="@TEST_DURATION@">
|
|
<failure result="fail" message="'false' returned FALSE. ()" tag="row 1"/>
|
|
</testcase>
|
|
<testcase name="testFailSkip" result="fail" time="@TEST_DURATION@">
|
|
<failure result="fail" message="'false' returned FALSE. ()" tag="row 1"/>
|
|
<!-- type="skip" message="Skipping" tag="row 2" -->
|
|
</testcase>
|
|
<testcase name="testFailFail" result="fail" time="@TEST_DURATION@">
|
|
<failure result="fail" message="'false' returned FALSE. ()" tag="row 1"/>
|
|
<failure result="fail" message="'false' returned FALSE. ()" tag="row 2"/>
|
|
</testcase>
|
|
<testcase name="testFailInInit" result="fail" time="@TEST_DURATION@">
|
|
<failure result="fail" message="Fail in init()" tag="fail"/>
|
|
</testcase>
|
|
<testcase name="testFailInCleanup" result="fail" time="@TEST_DURATION@">
|
|
<!-- type="qdebug" message="This test function should execute and then QFAIL in cleanup()" tag="fail" -->
|
|
<failure result="fail" message="Fail in cleanup()" tag="fail"/>
|
|
</testcase>
|
|
<testcase name="testSkipInInit" result="pass" time="@TEST_DURATION@">
|
|
<!-- type="skip" message="Skip in init()" tag="skip" -->
|
|
</testcase>
|
|
<testcase name="testSkipInCleanup" result="pass" time="@TEST_DURATION@">
|
|
<!-- type="qdebug" message="This test function should execute and then QSKIP in cleanup()" tag="skip" -->
|
|
<!-- type="skip" message="Skip in cleanup()" tag="skip" -->
|
|
</testcase>
|
|
<testcase name="cleanupTestCase" result="pass" time="@TEST_DURATION@"/>
|
|
<system-out>
|
|
<![CDATA[Skipping]]>
|
|
<![CDATA[Skipping]]>
|
|
<![CDATA[Skipping]]>
|
|
<![CDATA[Skipping]]>
|
|
<![CDATA[Skipping]]>
|
|
<![CDATA[Skipping]]>
|
|
<![CDATA[This test function should execute and then QFAIL in cleanup()]]>
|
|
<![CDATA[Skip in init()]]>
|
|
<![CDATA[This test function should execute and then QSKIP in cleanup()]]>
|
|
<![CDATA[Skip in cleanup()]]>
|
|
</system-out>
|
|
<system-err/>
|
|
</testsuite>
|