| Package | Description |
|---|---|
| org.junit.platform.engine |
Public API for test engines.
|
| org.junit.platform.engine.reporting |
Classes used by test engines to report additional data to execution
listeners.
|
| org.junit.platform.launcher |
Public API for configuring and launching test plans.
|
| org.junit.platform.launcher.core |
Core support classes for the
Launcher
including the LauncherFactory
and the LauncherDiscoveryRequestBuilder. |
| org.junit.platform.runner |
Runner and annotations for configuring and executing tests on the
JUnit Platform in a JUnit 4 environment. |
| org.junit.platform.testkit.engine |
Test Kit for testing the execution of a
TestEngine
running on the JUnit Platform. |
| Modifier and Type | Method and Description |
|---|---|
default void |
EngineExecutionListener.reportingEntryPublished(TestDescriptor testDescriptor,
ReportEntry entry)
Can be called for any
TestDescriptor in order to publish additional
information to the reporting infrastructure — for example:
Output that would otherwise go to System.out
Information about test context or test data
|
| Modifier and Type | Method and Description |
|---|---|
static ReportEntry |
ReportEntry.from(java.util.Map<java.lang.String,java.lang.String> keyValuePairs)
Factory for creating a new
ReportEntry from a map of key-value pairs. |
static ReportEntry |
ReportEntry.from(java.lang.String key,
java.lang.String value)
Factory for creating a new
ReportEntry from a key-value pair. |
| Modifier and Type | Method and Description |
|---|---|
default void |
TestExecutionListener.reportingEntryPublished(TestIdentifier testIdentifier,
ReportEntry entry)
Called when additional test reporting data has been published for
the supplied
TestIdentifier. |
| Modifier and Type | Field and Description |
|---|---|
private java.util.function.BiConsumer<TestIdentifier,ReportEntry> |
StreamInterceptingTestExecutionListener.reporter |
| Modifier and Type | Method and Description |
|---|---|
void |
CompositeEngineExecutionListener.reportingEntryPublished(TestDescriptor testDescriptor,
ReportEntry entry) |
void |
DelegatingEngineExecutionListener.reportingEntryPublished(TestDescriptor testDescriptor,
ReportEntry entry) |
void |
ExecutionListenerAdapter.reportingEntryPublished(TestDescriptor testDescriptor,
ReportEntry entry) |
void |
CompositeTestExecutionListener.reportingEntryPublished(TestIdentifier testIdentifier,
ReportEntry entry) |
| Modifier and Type | Method and Description |
|---|---|
(package private) static java.util.Optional<StreamInterceptingTestExecutionListener> |
StreamInterceptingTestExecutionListener.create(ConfigurationParameters configurationParameters,
java.util.function.BiConsumer<TestIdentifier,ReportEntry> reporter) |
| Constructor and Description |
|---|
StreamInterceptingTestExecutionListener(java.util.Optional<StreamInterceptor> stdoutInterceptor,
java.util.Optional<StreamInterceptor> stderrInterceptor,
java.util.function.BiConsumer<TestIdentifier,ReportEntry> reporter) |
| Modifier and Type | Method and Description |
|---|---|
void |
JUnitPlatformRunnerListener.reportingEntryPublished(TestIdentifier testIdentifier,
ReportEntry entry) |
| Modifier and Type | Method and Description |
|---|---|
static Event |
Event.reportingEntryPublished(TestDescriptor testDescriptor,
ReportEntry entry)
|
void |
ExecutionRecorder.reportingEntryPublished(TestDescriptor testDescriptor,
ReportEntry entry)
Record an
Event for a published ReportEntry. |