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>
64 lines
2.1 KiB
Plaintext
64 lines
2.1 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="testFunc1">
|
|
<Message type="warn" file="tst_xunit.cpp" line="67">
|
|
<Description><![CDATA[just a QWARN() !]]></Description>
|
|
</Message>
|
|
<Incident type="pass" file="" line="0" />
|
|
<Duration msecs="0"/>
|
|
</TestFunction>
|
|
<TestFunction name="testFunc2">
|
|
<Message type="qdebug" file="" line="0">
|
|
<Description><![CDATA[a qDebug() call with comment-ending stuff -->]]></Description>
|
|
</Message>
|
|
<Incident type="fail" file="tst_xunit.cpp" line="74">
|
|
<Description><![CDATA[Compared values are not the same
|
|
Actual (2): 2
|
|
Expected (3): 3]]></Description>
|
|
</Incident>
|
|
<Duration msecs="0"/>
|
|
</TestFunction>
|
|
<TestFunction name="testFunc3">
|
|
<Message type="skip" file="tst_xunit.cpp" line="79">
|
|
<Description><![CDATA[skipping this function!]]></Description>
|
|
</Message>
|
|
<Duration msecs="0"/>
|
|
</TestFunction>
|
|
<TestFunction name="testFunc4">
|
|
<Incident type="fail" file="tst_xunit.cpp" line="84">
|
|
<Description><![CDATA[a forced failure!]]></Description>
|
|
</Incident>
|
|
<Duration msecs="0"/>
|
|
</TestFunction>
|
|
<TestFunction name="testFunc5">
|
|
<Incident type="xfail" file="tst_xunit.cpp" line="98">
|
|
<Description><![CDATA[this failure is expected]]></Description>
|
|
</Incident>
|
|
<Incident type="pass" file="" line="0" />
|
|
<Duration msecs="0"/>
|
|
</TestFunction>
|
|
<TestFunction name="testFunc6">
|
|
<Incident type="xfail" file="tst_xunit.cpp" line="104">
|
|
<Description><![CDATA[this failure is also expected]]></Description>
|
|
</Incident>
|
|
<Incident type="pass" file="" line="0" />
|
|
<Duration msecs="0"/>
|
|
</TestFunction>
|
|
<TestFunction name="testFunc7">
|
|
<Incident type="xpass" file="tst_xunit.cpp" line="110">
|
|
<Description><![CDATA['true' returned TRUE unexpectedly. ()]]></Description>
|
|
</Incident>
|
|
<Duration msecs="0"/>
|
|
</TestFunction>
|
|
<TestFunction name="cleanupTestCase">
|
|
<Incident type="pass" file="" line="0" />
|
|
<Duration msecs="0"/>
|
|
</TestFunction>
|
|
<Duration msecs="0"/>
|