Package | Description |
---|---|
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.launcher.listeners |
Common
TestExecutionListener implementations and related support classes for
the Launcher . |
org.junit.platform.reporting.legacy.xml |
Support for generating XML reports using a format which is compatible with
the de facto standard for JUnit 4 based test reports that was made popular
by the Ant build system.
|
org.junit.platform.runner |
Runner and annotations for configuring and executing tests on the
JUnit Platform in a JUnit 4 environment. |
Modifier and Type | Method and Description |
---|---|
void |
Launcher.execute(LauncherDiscoveryRequest launcherDiscoveryRequest,
TestExecutionListener... listeners)
Execute a
TestPlan which is built according to the supplied
LauncherDiscoveryRequest by querying all registered engines and
collecting their results, and notify
registered listeners about
the progress and results of the execution. |
void |
Launcher.execute(TestPlan testPlan,
TestExecutionListener... listeners)
Execute the supplied
TestPlan and notify
registered listeners about
the progress and results of the execution. |
void |
Launcher.registerTestExecutionListeners(TestExecutionListener... listeners)
Register one or more listeners for test execution.
|
Modifier and Type | Interface and Description |
---|---|
(package private) static interface |
TestExecutionListenerRegistry.EagerTestExecutionListener |
Modifier and Type | Class and Description |
---|---|
(package private) class |
StreamInterceptingTestExecutionListener |
private class |
TestExecutionListenerRegistry.CompositeTestExecutionListener |
Modifier and Type | Field and Description |
---|---|
private TestExecutionListener |
ExecutionListenerAdapter.testExecutionListener |
Modifier and Type | Field and Description |
---|---|
private java.util.Collection<TestExecutionListener> |
DefaultLauncherConfig.additionalTestExecutionListeners |
private java.util.Collection<TestExecutionListener> |
LauncherConfig.Builder.listeners |
private java.util.List<TestExecutionListener> |
TestExecutionListenerRegistry.testExecutionListeners |
Modifier and Type | Method and Description |
---|---|
private <T extends TestExecutionListener> |
TestExecutionListenerRegistry.notifyEach(java.util.List<T> listeners,
java.util.function.Consumer<T> consumer,
java.util.function.Supplier<java.lang.String> description) |
Modifier and Type | Method and Description |
---|---|
(package private) TestExecutionListener |
TestExecutionListenerRegistry.getCompositeTestExecutionListener() |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<TestExecutionListener> |
LauncherConfig.getAdditionalTestExecutionListeners()
Get the collection of additional test execution listeners that should be
added to the
Launcher . |
java.util.Collection<TestExecutionListener> |
DefaultLauncherConfig.getAdditionalTestExecutionListeners() |
(package private) java.util.List<TestExecutionListener> |
TestExecutionListenerRegistry.getTestExecutionListeners() |
(package private) java.lang.Iterable<TestExecutionListener> |
ServiceLoaderTestExecutionListenerRegistry.loadListeners() |
Modifier and Type | Method and Description |
---|---|
LauncherConfig.Builder |
LauncherConfig.Builder.addTestExecutionListeners(TestExecutionListener... listeners)
Add all of the supplied
listeners to the configuration. |
private TestExecutionListenerRegistry |
DefaultLauncher.buildListenerRegistryForExecution(TestExecutionListener... listeners) |
private void |
DefaultLauncher.execute(InternalTestPlan internalTestPlan,
TestExecutionListener[] listeners) |
void |
DefaultLauncher.execute(LauncherDiscoveryRequest discoveryRequest,
TestExecutionListener... listeners) |
void |
DefaultLauncher.execute(TestPlan testPlan,
TestExecutionListener... listeners) |
(package private) void |
TestExecutionListenerRegistry.registerListeners(TestExecutionListener... listeners) |
void |
DefaultLauncher.registerTestExecutionListeners(TestExecutionListener... listeners) |
Modifier and Type | Method and Description |
---|---|
private void |
DefaultLauncher.withInterceptedStreams(ConfigurationParameters configurationParameters,
TestExecutionListenerRegistry listenerRegistry,
java.util.function.Consumer<TestExecutionListener> action) |
Constructor and Description |
---|
ExecutionListenerAdapter(InternalTestPlan testPlan,
TestExecutionListener testExecutionListener) |
Constructor and Description |
---|
DefaultLauncherConfig(boolean testEngineAutoRegistrationEnabled,
boolean testExecutionListenerAutoRegistrationEnabled,
java.util.Collection<TestEngine> additionalTestEngines,
java.util.Collection<TestExecutionListener> additionalTestExecutionListeners) |
Modifier and Type | Class and Description |
---|---|
class |
LoggingListener
Simple
TestExecutionListener for logging informational messages
for all events via a BiConsumer that consumes Throwable
and Supplier<String> . |
class |
SummaryGeneratingListener
Simple
TestExecutionListener that generates a
summary of the test execution. |
Modifier and Type | Class and Description |
---|---|
class |
LegacyXmlReportGeneratingListener
LegacyXmlReportGeneratingListener is a TestExecutionListener that
generates a separate XML report for each root
in the TestPlan . |
Modifier and Type | Class and Description |
---|---|
(package private) class |
JUnitPlatformRunnerListener |