|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Reporter
Contract between the different implementations of the Surefire reporters
Method Summary | |
---|---|
java.util.Collection |
getErrorSources()
Gives the source(s) that causes the error(s). |
java.util.Collection |
getFailureSources()
Gives the source(s) that causes the failures(s). |
int |
getNumErrors()
Get the number of errors |
int |
getNumFailures()
Get the number of failures |
int |
getNumSkipped()
Get the number of tests skipped |
int |
getNumTests()
Get the number of tests |
void |
reset()
|
void |
runAborted(ReportEntry report)
|
void |
runCompleted()
|
void |
runStarting(int testCount)
|
void |
runStopped()
|
void |
testError(ReportEntry report,
java.lang.String stdOut,
java.lang.String stdErr)
Event fired when a test ended with an error (non anticipated problem) |
void |
testFailed(ReportEntry report,
java.lang.String stdOut,
java.lang.String stdErr)
Event fired when a test ended with a failure (anticipated problem) |
void |
testSetAborted(ReportEntry report)
|
void |
testSetCompleted(ReportEntry report)
|
void |
testSetStarting(ReportEntry report)
|
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 |
writeFooter(java.lang.String footer)
|
void |
writeMessage(java.lang.String message)
|
Method Detail |
---|
void writeMessage(java.lang.String message)
void writeFooter(java.lang.String footer)
void runStarting(int testCount)
void runCompleted()
void runStopped()
void runAborted(ReportEntry report)
void testSetStarting(ReportEntry report) throws ReporterException
ReporterException
void testSetCompleted(ReportEntry report) throws ReporterException
ReporterException
void testSetAborted(ReportEntry report)
void testStarting(ReportEntry report)
report
- void testSucceeded(ReportEntry report)
report
- void testError(ReportEntry report, java.lang.String stdOut, java.lang.String stdErr)
report
- stdOut
- standard output from the test casestdErr
- error output from the test casevoid testFailed(ReportEntry report, java.lang.String stdOut, java.lang.String stdErr)
report
- stdOut
- standard output from the test casestdErr
- error output from the test casevoid testSkipped(ReportEntry report)
void reset()
int getNumErrors()
int getNumFailures()
int getNumTests()
int getNumSkipped()
java.util.Collection getErrorSources()
java.util.Collection getFailureSources()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |