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>
104 lines
4.9 KiB
XML
104 lines
4.9 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<testsuite name="tst_Counting" timestamp="@TEST_START_TIME@" tests="15" failures="8" errors="28" 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@">
|
|
<!-- type="info" message="QVERIFY(true)" tag="row 1" -->
|
|
<!-- type="info" message="QCOMPARE(2 + 1, 3)" tag="row 1" -->
|
|
<!-- type="info" message="QVERIFY(true)" tag="row 2" -->
|
|
<!-- type="info" message="QCOMPARE(2 + 1, 3)" tag="row 2" -->
|
|
</testcase>
|
|
<testcase name="testPassSkip" result="pass" time="@TEST_DURATION@">
|
|
<!-- type="info" message="QVERIFY(true)" tag="row 1" -->
|
|
<!-- type="info" message="QCOMPARE(2 + 1, 3)" tag="row 1" -->
|
|
<!-- type="skip" message="Skipping" tag="row 2" -->
|
|
</testcase>
|
|
<testcase name="testPassFail" result="fail" time="@TEST_DURATION@">
|
|
<!-- type="info" message="QVERIFY(true)" tag="row 1" -->
|
|
<!-- type="info" message="QCOMPARE(2 + 1, 3)" tag="row 1" -->
|
|
<!-- type="info" message="QVERIFY(false)" tag="row 2" -->
|
|
<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" -->
|
|
<!-- type="info" message="QVERIFY(true)" tag="row 2" -->
|
|
<!-- type="info" message="QCOMPARE(2 + 1, 3)" tag="row 2" -->
|
|
</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" -->
|
|
<!-- type="info" message="QVERIFY(false)" tag="row 2" -->
|
|
<failure result="fail" message="'false' returned FALSE. ()" tag="row 2"/>
|
|
</testcase>
|
|
<testcase name="testFailPass" result="fail" time="@TEST_DURATION@">
|
|
<!-- type="info" message="QVERIFY(false)" tag="row 1" -->
|
|
<failure result="fail" message="'false' returned FALSE. ()" tag="row 1"/>
|
|
<!-- type="info" message="QVERIFY(true)" tag="row 2" -->
|
|
<!-- type="info" message="QCOMPARE(2 + 1, 3)" tag="row 2" -->
|
|
</testcase>
|
|
<testcase name="testFailSkip" result="fail" time="@TEST_DURATION@">
|
|
<!-- type="info" message="QVERIFY(false)" tag="row 1" -->
|
|
<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@">
|
|
<!-- type="info" message="QVERIFY(false)" tag="row 1" -->
|
|
<failure result="fail" message="'false' returned FALSE. ()" tag="row 1"/>
|
|
<!-- type="info" message="QVERIFY(false)" tag="row 2" -->
|
|
<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[QVERIFY(true)]]>
|
|
<![CDATA[QCOMPARE(2 + 1, 3)]]>
|
|
<![CDATA[QVERIFY(true)]]>
|
|
<![CDATA[QCOMPARE(2 + 1, 3)]]>
|
|
<![CDATA[QVERIFY(true)]]>
|
|
<![CDATA[QCOMPARE(2 + 1, 3)]]>
|
|
<![CDATA[Skipping]]>
|
|
<![CDATA[QVERIFY(true)]]>
|
|
<![CDATA[QCOMPARE(2 + 1, 3)]]>
|
|
<![CDATA[QVERIFY(false)]]>
|
|
<![CDATA[Skipping]]>
|
|
<![CDATA[QVERIFY(true)]]>
|
|
<![CDATA[QCOMPARE(2 + 1, 3)]]>
|
|
<![CDATA[Skipping]]>
|
|
<![CDATA[Skipping]]>
|
|
<![CDATA[Skipping]]>
|
|
<![CDATA[QVERIFY(false)]]>
|
|
<![CDATA[QVERIFY(false)]]>
|
|
<![CDATA[QVERIFY(true)]]>
|
|
<![CDATA[QCOMPARE(2 + 1, 3)]]>
|
|
<![CDATA[QVERIFY(false)]]>
|
|
<![CDATA[Skipping]]>
|
|
<![CDATA[QVERIFY(false)]]>
|
|
<![CDATA[QVERIFY(false)]]>
|
|
<![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>
|