[Cppunit-devel] How to use clocker in my own project ?
Brought to you by:
blep
|
From: Philippe L. <phi...@ca...> - 2002-04-22 23:25:05
|
Hi guys,
Now that I've managed to figure out how to do a proper copy from one =
place to the other :) I'm ready to incorporate cppunit results inside =
the build process (I'm using ant to do the builds).=20
I'd prefer to have the xml output with the test duration times included. =
I want to have the default XML output from DllPluginTester to also have =
timing values. What is the best way to achieve this ?=20
I think I might be missing some basic concepts on how I can mix and =
match the different listener and outputer. I'm pretty sure I should look =
at the ClockPlugIn for guidance.
I did the following naive test hoping that some magic would occur
DllPlugInTesterd_dll -x test.xml -c Mine.dll clockerplugind.dll
.
(0.050s) All Tests
+--(0.050s) InputErrorTest
| +--(0.050s) InputErrorTest.testNormalUsage
Total elapsed time: (0.050s) , average test case time: (0.150s) OK (1)
The command line output is indeed magic :) (although there is a bug in =
the average test case time). However, the XML output is as follows.
<?xml version=3D"1.0" encoding=3D'' standalone=3D'yes' ?>
<TestRun>
<FailedTests></FailedTests>
<SuccessfulTests>
<Test id=3D"1">
<Name>InputErrorTest.testNormalUsage</Name>
</Test>
</SuccessfulTests>
<Statistics>
<Tests>1</Tests>
<FailuresTotal>0</FailuresTotal>
<Errors>0</Errors>
<Failures>0</Failures>
</Statistics>
</TestRun>
Please let me know if you know in which direction I should go to add a =
time attribute to the Test results. Thanks.
Phil
|