public class TestSetRunListener extends Object implements RunListener, ConsoleOutputReceiver, ConsoleLogger
| Constructor and Description |
|---|
TestSetRunListener(ConsoleReporter consoleReporter,
FileReporter fileReporter,
StatelessXmlReporter simpleXMLReporter,
TestcycleConsoleOutputReceiver consoleOutputReceiver,
StatisticsReporter statisticsReporter,
boolean trimStackTrace,
boolean isPlainFormat,
boolean briefOrPlainFormat) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTestMethodStats() |
void |
clearCapture() |
void |
close() |
List<TestMethodStats> |
getTestMethodStats() |
void |
info(String message) |
void |
testAssumptionFailure(ReportEntry report)
Event fired when a test assumption failure was encountered.
|
void |
testError(ReportEntry reportEntry)
Event fired when a test ended with an error (non anticipated problem)
|
void |
testExecutionSkippedByUser()
Event fired skipping an execution of remaining test-set in other fork(s); or does nothing if no forks.
|
void |
testFailed(ReportEntry reportEntry)
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 reportEntry)
Event fired when a test is skipped
|
void |
testStarting(ReportEntry report)
Event fired when a test is about to start
|
void |
testSucceeded(ReportEntry reportEntry)
Event fired when a test ended successfully
|
void |
writeTestOutput(byte[] buf,
int off,
int len,
boolean stdout)
Forwards process output from the running test-case into the reporting system
|
public TestSetRunListener(ConsoleReporter consoleReporter, FileReporter fileReporter, StatelessXmlReporter simpleXMLReporter, TestcycleConsoleOutputReceiver consoleOutputReceiver, StatisticsReporter statisticsReporter, boolean trimStackTrace, boolean isPlainFormat, boolean briefOrPlainFormat)
public void info(String message)
info in interface ConsoleLoggerpublic void writeTestOutput(byte[] buf,
int off,
int len,
boolean stdout)
ConsoleOutputReceiverwriteTestOutput in interface ConsoleOutputReceiverbuf - the buffer to writeoff - offsetlen - lenstdout - Indicates if this is stdoutpublic void testSetStarting(ReportEntry report)
RunListenertestSetStarting in interface RunListenerreport - the report entry describing the testsetpublic void clearCapture()
public void testSetCompleted(ReportEntry report)
RunListenertestSetCompleted in interface RunListenerreport - the report entry describing the testsetpublic void testStarting(ReportEntry report)
RunListenertestStarting in interface RunListenerreport - The report entry to log forpublic void testSucceeded(ReportEntry reportEntry)
RunListenertestSucceeded in interface RunListenerreportEntry - The report entry to log forpublic void testError(ReportEntry reportEntry)
RunListenertestError in interface RunListenerreportEntry - The report entry to log forpublic void testFailed(ReportEntry reportEntry)
RunListenertestFailed in interface RunListenerreportEntry - The report entry to log forpublic void testSkipped(ReportEntry reportEntry)
RunListenertestSkipped in interface RunListenerreportEntry - The report entry to log forpublic void testExecutionSkippedByUser()
RunListenerSurefireProvider.(The event is fired after the Nth test failed to signal skipping the rest of test-set.)
testExecutionSkippedByUser in interface RunListenerpublic void testAssumptionFailure(ReportEntry report)
RunListenertestAssumptionFailure in interface RunListenerreport - The report entry to log forpublic void close()
public void addTestMethodStats()
public List<TestMethodStats> getTestMethodStats()
Copyright © 2004–2016 The Apache Software Foundation. All rights reserved.