67c877562b
The attributes are, like the elements, maintained in reverse order in the underlying QTestCoreList, so we need to iterate them backwards when printing out the resulting XML to reflect the order they were added. This results in e.g.: <testcase name="passingBenchmark" result="pass"> Instead of: <testcase result="pass" name="passingBenchmark"> Change-Id: Ic2eeab8de05ffedd0c41977358d5b40ff77878b1 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
66 lines
2.8 KiB
XML
66 lines
2.8 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<testsuite name="tst_Counting" tests="15" failures="8" errors="10">
|
|
<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"/>
|
|
<testcase name="testPassPass" result="pass"/>
|
|
<testcase name="testPassSkip" result="pass">
|
|
<!-- type="skip" message="Skipping" tag="row 2" -->
|
|
</testcase>
|
|
<testcase name="testPassFail" result="fail">
|
|
<failure result="fail" message="'false' returned FALSE. ()" tag="row 2"/>
|
|
</testcase>
|
|
<testcase name="testSkipPass" result="pass">
|
|
<!-- type="skip" message="Skipping" tag="row 1" -->
|
|
</testcase>
|
|
<testcase name="testSkipSkip">
|
|
<!-- type="skip" message="Skipping" tag="row 1" -->
|
|
<!-- type="skip" message="Skipping" tag="row 2" -->
|
|
</testcase>
|
|
<testcase name="testSkipFail" result="fail">
|
|
<!-- type="skip" message="Skipping" tag="row 1" -->
|
|
<failure result="fail" message="'false' returned FALSE. ()" tag="row 2"/>
|
|
</testcase>
|
|
<testcase name="testFailPass" result="fail">
|
|
<failure result="fail" message="'false' returned FALSE. ()" tag="row 1"/>
|
|
</testcase>
|
|
<testcase name="testFailSkip" result="fail">
|
|
<failure result="fail" message="'false' returned FALSE. ()" tag="row 1"/>
|
|
<!-- type="skip" message="Skipping" tag="row 2" -->
|
|
</testcase>
|
|
<testcase name="testFailFail" result="fail">
|
|
<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">
|
|
<failure result="fail" message="Fail in init()" tag="fail"/>
|
|
</testcase>
|
|
<testcase name="testFailInCleanup" result="fail">
|
|
<!-- 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">
|
|
<!-- type="skip" message="Skip in init()" tag="skip" -->
|
|
</testcase>
|
|
<testcase name="testSkipInCleanup" result="pass">
|
|
<!-- 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"/>
|
|
<system-err>
|
|
<![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-err>
|
|
</testsuite>
|