Blame examples/ClockerPlugIn/ReadMe.txt

Packit 8c9aa0
A test plug-ins that track tests and test suites running time. It demonstrates
Packit 8c9aa0
TestListener, TestPlugIn, and XmlOutputterHook.
Packit 8c9aa0
Packit 8c9aa0
Both suite and test case times are tracked. The plug-in include in the XML
Packit 8c9aa0
output the TestPath of each test cases and its tracked time.
Packit 8c9aa0
Packit 8c9aa0
The timed test hierarchy is also included in the XML output. This way it is
Packit 8c9aa0
possible to see the time each suite takes to run.
Packit 8c9aa0
Packit 8c9aa0
Packit 8c9aa0
Packit 8c9aa0
* Usage:
Packit 8c9aa0
Packit 8c9aa0
Just add this plug-in to DllPlugInTester command line. It will add a test 
Packit 8c9aa0
listener to track test time, and add a hook to the XmlOutputter to include
Packit 8c9aa0
test time to the XmlOutput.
Packit 8c9aa0
Packit 8c9aa0
If the option "text" is passed to the plug-in, the timed test tree will be
Packit 8c9aa0
printed to stdout.
Packit 8c9aa0
Packit 8c9aa0
DllPlugInRunnerd.exe ClockerPlugInd.dll
Packit 8c9aa0
or
Packit 8c9aa0
DllPlugInRunnerd.exe ClockerPlugInd.dll=text
Packit 8c9aa0
Packit 8c9aa0
* Example:
Packit 8c9aa0
Packit 8c9aa0
DllPlugInTesterd_dll.exe -x timed.xml ClockerPlugInd.dll CppUnitTestPlugInd.dll 
Packit 8c9aa0
Packit 8c9aa0
Will track time of all tests contains in CppUnitTestPlugInd.dll and save the
Packit 8c9aa0
result in timed.xml.
Packit 8c9aa0
Packit 8c9aa0
* Notes:
Packit 8c9aa0
Packit 8c9aa0
The id of the <TimedTestTree> are different than those of the
Packit 8c9aa0
<SuccessfulTests> and <FailedTests> trees. You can use the <TestPath> to 
Packit 8c9aa0
cross-reference the datas.
Packit 8c9aa0
Packit 8c9aa0
* Remarks:
Packit 8c9aa0
Packit 8c9aa0
You may want to review ClockerModel before using this plug-in for serious
Packit 8c9aa0
purpose, add timing based on the process cpu time.
Packit 8c9aa0
Packit 8c9aa0
A version is provided for NT that use the main thread cpu time. This is an issue 
Packit 8c9aa0
if the test cases are multithreaded.