org.jtiger.report.text
Class TextFixtureResultsHandler
java.lang.Object
org.jtiger.report.text.TextFixtureResultsHandler
- All Implemented Interfaces:
- FixtureResultsHandler
public final class TextFixtureResultsHandler
- extends Object
- implements FixtureResultsHandler
A result handler that produces a plain text report of test run results.
The report is written to a file which is passed in the parameters to
the handleResult method
.
- Version:
- 2.1
Build Number 0376
Build Time 2006-07-28 01:50.16.218 CET (GMT + 1)
- Author:
- Tony Morris
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextFixtureResultsHandler
public TextFixtureResultsHandler()
- Create a default TextFixtureResultsHandler.
handleResult
public void handleResult(FixtureResults results,
ReadOnlyArray<String> params)
throws FixtureResultsHandlerException
- Write a plain text report of the given test run results to a file which is passed in the parameters.
If the params are empty, the current directory is used to write the report to in a file called
'result.txt'.
- Specified by:
handleResult
in interface FixtureResultsHandler
- Parameters:
results
- The test run results to produce the plain text report of.params
- The parameters that contain at least one parameter which is the file to write the plain text report
to otherwise the current directory is used.
- Throws:
FixtureResultsHandlerException
- If an error occurs while writing the plain text report.