Interface TestReportListener<T extends OutputReportEntry>
-
- Type Parameters:
T
- usuallyTestOutputReportEntry
orOutputReportEntry
- All Superinterfaces:
ConsoleLogger
,RunListener
,TestOutputReceiver<T>
- All Known Implementing Classes:
ForkingRunListener
public interface TestReportListener<T extends OutputReportEntry> extends RunListener, TestOutputReceiver<T>, ConsoleLogger
This architecture has two sides (forked JVM, plugin JVM) implementing the same interfaceTestReportListener
:1. publisher - surefire fork JVM:
Both implementations ofForkingRunListener
registered inSurefireProvider
2. consumer - plugin JVM:TestSetRunListener
registered in theForkClient
TestReportListener
, i.e.ForkingRunListener
andTestSetRunListener
are decorators. They are used as delegators in interface adapters, see the implementations of JUnit'sRunListener RunListener-s
.
The serialization of data inTestReportListener
ensures that the ReportEntries are transferred from the fork to the plugin.
Note: The adapters in the module surefire-junit47 are temporal and will be removed after we have fixed the SUREFIRE-1860 and XML reporter in SUREFIRE-1643. The adapters are a workaround of a real fix in both Jira issues.
-
-
Method Summary
-
Methods inherited from interface org.apache.maven.plugin.surefire.log.api.ConsoleLogger
debug, error, error, error, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isWarnEnabled, warning
-
Methods inherited from interface org.apache.maven.surefire.api.report.RunListener
testAssumptionFailure, testError, testExecutionSkippedByUser, testFailed, testSetCompleted, testSetStarting, testSkipped, testStarting, testSucceeded
-
Methods inherited from interface org.apache.maven.surefire.api.report.TestOutputReceiver
writeTestOutput
-
-