|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Reporter
Persists reports somewhere
An instance of a reporter is not guaranteed to be thread-safe and concurrent test frameworks must request an instance of a reporter per-thread from the ReporterFactory.
Method Summary | |
---|---|
void |
reset()
Restores the instance of the reporter, making the instance re-usable for a subsequent run in the same thread. |
void |
testError(ReportEntry report)
Event fired when a test ended with an error (non anticipated problem) |
void |
testError(ReportEntry report,
String stdOut,
String stdErr)
Event fired when a test ended with an error (non anticipated problem) |
void |
testFailed(ReportEntry report)
Event fired when a test ended with a failure (anticipated problem) |
void |
testFailed(ReportEntry report,
String stdOut,
String stdErr)
Event fired when a test ended with a failure (anticipated problem) |
void |
testSetCompleted(ReportEntry report)
Indicates end of a given test-set |
void |
testSetStarting(ReportEntry report)
Indicates the start of a given test-set |
void |
testSkipped(ReportEntry report)
|
void |
testStarting(ReportEntry report)
Event fired when a test is about to start |
void |
testSucceeded(ReportEntry report)
Event fired when a test ended successfully |
void |
writeDetailMessage(String message)
Writes a detailed message that will not necessarily be displayed in all channels. |
void |
writeFooter(String footer)
|
void |
writeMessage(String message)
Writes a message that will be displayed in all free-text format reporters. |
Method Detail |
---|
void testSetStarting(ReportEntry report) throws ReporterException
report
- the report entry describing the testset
ReporterException
- When reporting failsvoid testSetCompleted(ReportEntry report) throws ReporterException
report
- the report entry describing the testset
ReporterException
- When reporting failsvoid testStarting(ReportEntry report)
report
- The report entry to log forvoid testSucceeded(ReportEntry report)
report
- The report entry to log forvoid testError(ReportEntry report)
report
- The report entry to log forvoid testFailed(ReportEntry report)
report
- The report entry to log forvoid testSkipped(ReportEntry report)
void testError(ReportEntry report, String stdOut, String stdErr)
report
- The report entry to log forstdOut
- standard output from the test casestdErr
- error output from the test casevoid testFailed(ReportEntry report, String stdOut, String stdErr)
report
- The report entry to log forstdOut
- standard output from the test casestdErr
- error output from the test casevoid writeMessage(String message)
message
- The message to write.void writeDetailMessage(String message)
message
- The message to writevoid reset()
void writeFooter(String footer)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |