#31 adding basic test timing results in xml report

open
nobody
None
5
2009-05-18
2009-05-18
Dominic Clifton
No

this simple patch adds a <time> element for each <test> element in the xml document that contains the time (in seconds) it took between calls to paintMethodStart and paintMethodEnd which is accurate enough for continuous integration reporting purposes

example:

<run>
...
<case>
...
<test>
<name>testExecutionTime</name>
<pass>slept for 5 seconds at [/opt/cruisecontrol-bin-2.8.1/projects/service-vote/source/tests/unit/classes/business/votetest.php line 233]</pass>
<time>5.0023078918457</time>
</test>
...
</case>
...
</run>

Discussion

  • svn diff for the enhancement