019588f307
[ChangeLog][QtTest] Added test duration to xml output. When running tests with xml output a new tag of the form <duration msecs="123"/> is added to each test function and the test as a whole. Change-Id: Ibc4db066b6acf5fac6c578f5e5ca5ce4b5d8ea8e Reviewed-by: Sergio Ahumada <sahumada@blackberry.com> Reviewed-by: Jason McDonald <macadder1@gmail.com>
239 lines
9.0 KiB
Plaintext
239 lines
9.0 KiB
Plaintext
<Environment>
|
|
<QtVersion>@INSERT_QT_VERSION_HERE@</QtVersion>
|
|
<QTestVersion>@INSERT_QT_VERSION_HERE@</QTestVersion>
|
|
</Environment>
|
|
<TestFunction name="initTestCase">
|
|
<Incident type="pass" file="" line="0" />
|
|
<Duration msecs="0"/>
|
|
</TestFunction>
|
|
<TestFunction name="testPassPass">
|
|
<Message type="info" file="../counting/tst_counting.cpp" line="111">
|
|
<DataTag><![CDATA[row 1]]></DataTag>
|
|
<Description><![CDATA[QVERIFY(true)]]></Description>
|
|
</Message>
|
|
<Message type="info" file="../counting/tst_counting.cpp" line="112">
|
|
<DataTag><![CDATA[row 1]]></DataTag>
|
|
<Description><![CDATA[QCOMPARE(2 + 1, 3)]]></Description>
|
|
</Message>
|
|
<Incident type="pass" file="" line="0">
|
|
<DataTag><![CDATA[row 1]]></DataTag>
|
|
</Incident>
|
|
<Message type="info" file="../counting/tst_counting.cpp" line="111">
|
|
<DataTag><![CDATA[row 2]]></DataTag>
|
|
<Description><![CDATA[QVERIFY(true)]]></Description>
|
|
</Message>
|
|
<Message type="info" file="../counting/tst_counting.cpp" line="112">
|
|
<DataTag><![CDATA[row 2]]></DataTag>
|
|
<Description><![CDATA[QCOMPARE(2 + 1, 3)]]></Description>
|
|
</Message>
|
|
<Incident type="pass" file="" line="0">
|
|
<DataTag><![CDATA[row 2]]></DataTag>
|
|
</Incident>
|
|
<Duration msecs="0"/>
|
|
</TestFunction>
|
|
<TestFunction name="testPassSkip">
|
|
<Message type="info" file="../counting/tst_counting.cpp" line="111">
|
|
<DataTag><![CDATA[row 1]]></DataTag>
|
|
<Description><![CDATA[QVERIFY(true)]]></Description>
|
|
</Message>
|
|
<Message type="info" file="../counting/tst_counting.cpp" line="112">
|
|
<DataTag><![CDATA[row 1]]></DataTag>
|
|
<Description><![CDATA[QCOMPARE(2 + 1, 3)]]></Description>
|
|
</Message>
|
|
<Incident type="pass" file="" line="0">
|
|
<DataTag><![CDATA[row 1]]></DataTag>
|
|
</Incident>
|
|
<Message type="skip" file="../counting/tst_counting.cpp" line="118">
|
|
<DataTag><![CDATA[row 2]]></DataTag>
|
|
<Description><![CDATA[Skipping]]></Description>
|
|
</Message>
|
|
<Duration msecs="0"/>
|
|
</TestFunction>
|
|
<TestFunction name="testPassFail">
|
|
<Message type="info" file="../counting/tst_counting.cpp" line="111">
|
|
<DataTag><![CDATA[row 1]]></DataTag>
|
|
<Description><![CDATA[QVERIFY(true)]]></Description>
|
|
</Message>
|
|
<Message type="info" file="../counting/tst_counting.cpp" line="112">
|
|
<DataTag><![CDATA[row 1]]></DataTag>
|
|
<Description><![CDATA[QCOMPARE(2 + 1, 3)]]></Description>
|
|
</Message>
|
|
<Incident type="pass" file="" line="0">
|
|
<DataTag><![CDATA[row 1]]></DataTag>
|
|
</Incident>
|
|
<Message type="info" file="../counting/tst_counting.cpp" line="115">
|
|
<DataTag><![CDATA[row 2]]></DataTag>
|
|
<Description><![CDATA[QVERIFY(false)]]></Description>
|
|
</Message>
|
|
<Incident type="fail" file="../counting/tst_counting.cpp" line="115">
|
|
<DataTag><![CDATA[row 2]]></DataTag>
|
|
<Description><![CDATA['false' returned FALSE. ()]]></Description>
|
|
</Incident>
|
|
<Duration msecs="0"/>
|
|
</TestFunction>
|
|
<TestFunction name="testSkipPass">
|
|
<Message type="skip" file="../counting/tst_counting.cpp" line="118">
|
|
<DataTag><![CDATA[row 1]]></DataTag>
|
|
<Description><![CDATA[Skipping]]></Description>
|
|
</Message>
|
|
<Message type="info" file="../counting/tst_counting.cpp" line="111">
|
|
<DataTag><![CDATA[row 2]]></DataTag>
|
|
<Description><![CDATA[QVERIFY(true)]]></Description>
|
|
</Message>
|
|
<Message type="info" file="../counting/tst_counting.cpp" line="112">
|
|
<DataTag><![CDATA[row 2]]></DataTag>
|
|
<Description><![CDATA[QCOMPARE(2 + 1, 3)]]></Description>
|
|
</Message>
|
|
<Incident type="pass" file="" line="0">
|
|
<DataTag><![CDATA[row 2]]></DataTag>
|
|
</Incident>
|
|
<Duration msecs="0"/>
|
|
</TestFunction>
|
|
<TestFunction name="testSkipSkip">
|
|
<Message type="skip" file="../counting/tst_counting.cpp" line="118">
|
|
<DataTag><![CDATA[row 1]]></DataTag>
|
|
<Description><![CDATA[Skipping]]></Description>
|
|
</Message>
|
|
<Message type="skip" file="../counting/tst_counting.cpp" line="118">
|
|
<DataTag><![CDATA[row 2]]></DataTag>
|
|
<Description><![CDATA[Skipping]]></Description>
|
|
</Message>
|
|
<Duration msecs="0"/>
|
|
</TestFunction>
|
|
<TestFunction name="testSkipFail">
|
|
<Message type="skip" file="../counting/tst_counting.cpp" line="118">
|
|
<DataTag><![CDATA[row 1]]></DataTag>
|
|
<Description><![CDATA[Skipping]]></Description>
|
|
</Message>
|
|
<Message type="info" file="../counting/tst_counting.cpp" line="115">
|
|
<DataTag><![CDATA[row 2]]></DataTag>
|
|
<Description><![CDATA[QVERIFY(false)]]></Description>
|
|
</Message>
|
|
<Incident type="fail" file="../counting/tst_counting.cpp" line="115">
|
|
<DataTag><![CDATA[row 2]]></DataTag>
|
|
<Description><![CDATA['false' returned FALSE. ()]]></Description>
|
|
</Incident>
|
|
<Duration msecs="0"/>
|
|
</TestFunction>
|
|
<TestFunction name="testFailPass">
|
|
<Message type="info" file="../counting/tst_counting.cpp" line="115">
|
|
<DataTag><![CDATA[row 1]]></DataTag>
|
|
<Description><![CDATA[QVERIFY(false)]]></Description>
|
|
</Message>
|
|
<Incident type="fail" file="../counting/tst_counting.cpp" line="115">
|
|
<DataTag><![CDATA[row 1]]></DataTag>
|
|
<Description><![CDATA['false' returned FALSE. ()]]></Description>
|
|
</Incident>
|
|
<Message type="info" file="../counting/tst_counting.cpp" line="111">
|
|
<DataTag><![CDATA[row 2]]></DataTag>
|
|
<Description><![CDATA[QVERIFY(true)]]></Description>
|
|
</Message>
|
|
<Message type="info" file="../counting/tst_counting.cpp" line="112">
|
|
<DataTag><![CDATA[row 2]]></DataTag>
|
|
<Description><![CDATA[QCOMPARE(2 + 1, 3)]]></Description>
|
|
</Message>
|
|
<Incident type="pass" file="" line="0">
|
|
<DataTag><![CDATA[row 2]]></DataTag>
|
|
</Incident>
|
|
<Duration msecs="0"/>
|
|
</TestFunction>
|
|
<TestFunction name="testFailSkip">
|
|
<Message type="info" file="../counting/tst_counting.cpp" line="115">
|
|
<DataTag><![CDATA[row 1]]></DataTag>
|
|
<Description><![CDATA[QVERIFY(false)]]></Description>
|
|
</Message>
|
|
<Incident type="fail" file="../counting/tst_counting.cpp" line="115">
|
|
<DataTag><![CDATA[row 1]]></DataTag>
|
|
<Description><![CDATA['false' returned FALSE. ()]]></Description>
|
|
</Incident>
|
|
<Message type="skip" file="../counting/tst_counting.cpp" line="118">
|
|
<DataTag><![CDATA[row 2]]></DataTag>
|
|
<Description><![CDATA[Skipping]]></Description>
|
|
</Message>
|
|
<Duration msecs="0"/>
|
|
</TestFunction>
|
|
<TestFunction name="testFailFail">
|
|
<Message type="info" file="../counting/tst_counting.cpp" line="115">
|
|
<DataTag><![CDATA[row 1]]></DataTag>
|
|
<Description><![CDATA[QVERIFY(false)]]></Description>
|
|
</Message>
|
|
<Incident type="fail" file="../counting/tst_counting.cpp" line="115">
|
|
<DataTag><![CDATA[row 1]]></DataTag>
|
|
<Description><![CDATA['false' returned FALSE. ()]]></Description>
|
|
</Incident>
|
|
<Message type="info" file="../counting/tst_counting.cpp" line="115">
|
|
<DataTag><![CDATA[row 2]]></DataTag>
|
|
<Description><![CDATA[QVERIFY(false)]]></Description>
|
|
</Message>
|
|
<Incident type="fail" file="../counting/tst_counting.cpp" line="115">
|
|
<DataTag><![CDATA[row 2]]></DataTag>
|
|
<Description><![CDATA['false' returned FALSE. ()]]></Description>
|
|
</Incident>
|
|
<Duration msecs="0"/>
|
|
</TestFunction>
|
|
<TestFunction name="testFailInInit">
|
|
<Incident type="pass" file="" line="0">
|
|
<DataTag><![CDATA[before]]></DataTag>
|
|
</Incident>
|
|
<Incident type="fail" file="../counting/tst_counting.cpp" line="234">
|
|
<DataTag><![CDATA[fail]]></DataTag>
|
|
<Description><![CDATA[Fail in init()]]></Description>
|
|
</Incident>
|
|
<Incident type="pass" file="" line="0">
|
|
<DataTag><![CDATA[after]]></DataTag>
|
|
</Incident>
|
|
<Duration msecs="0"/>
|
|
</TestFunction>
|
|
<TestFunction name="testFailInCleanup">
|
|
<Incident type="pass" file="" line="0">
|
|
<DataTag><![CDATA[before]]></DataTag>
|
|
</Incident>
|
|
<Message type="qdebug" file="" line="0">
|
|
<DataTag><![CDATA[fail]]></DataTag>
|
|
<Description><![CDATA[This test function should execute and then QFAIL in cleanup()]]></Description>
|
|
</Message>
|
|
<Incident type="fail" file="../counting/tst_counting.cpp" line="242">
|
|
<DataTag><![CDATA[fail]]></DataTag>
|
|
<Description><![CDATA[Fail in cleanup()]]></Description>
|
|
</Incident>
|
|
<Incident type="pass" file="" line="0">
|
|
<DataTag><![CDATA[after]]></DataTag>
|
|
</Incident>
|
|
<Duration msecs="0"/>
|
|
</TestFunction>
|
|
<TestFunction name="testSkipInInit">
|
|
<Incident type="pass" file="" line="0">
|
|
<DataTag><![CDATA[before]]></DataTag>
|
|
</Incident>
|
|
<Message type="skip" file="../counting/tst_counting.cpp" line="236">
|
|
<DataTag><![CDATA[skip]]></DataTag>
|
|
<Description><![CDATA[Skip in init()]]></Description>
|
|
</Message>
|
|
<Incident type="pass" file="" line="0">
|
|
<DataTag><![CDATA[after]]></DataTag>
|
|
</Incident>
|
|
<Duration msecs="0"/>
|
|
</TestFunction>
|
|
<TestFunction name="testSkipInCleanup">
|
|
<Incident type="pass" file="" line="0">
|
|
<DataTag><![CDATA[before]]></DataTag>
|
|
</Incident>
|
|
<Message type="qdebug" file="" line="0">
|
|
<DataTag><![CDATA[skip]]></DataTag>
|
|
<Description><![CDATA[This test function should execute and then QSKIP in cleanup()]]></Description>
|
|
</Message>
|
|
<Message type="skip" file="../counting/tst_counting.cpp" line="244">
|
|
<DataTag><![CDATA[skip]]></DataTag>
|
|
<Description><![CDATA[Skip in cleanup()]]></Description>
|
|
</Message>
|
|
<Incident type="pass" file="" line="0">
|
|
<DataTag><![CDATA[after]]></DataTag>
|
|
</Incident>
|
|
<Duration msecs="0"/>
|
|
</TestFunction>
|
|
<TestFunction name="cleanupTestCase">
|
|
<Incident type="pass" file="" line="0" />
|
|
<Duration msecs="0"/>
|
|
</TestFunction>
|
|
<Duration msecs="0"/>
|