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.runner |
Runner and annotations for configuring and executing tests on the
JUnit Platform in a JUnit 4 environment. |
org.junit.platform.surefire.provider |
Maven Surefire provider for the JUnit Platform.
|
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.registerTestExecutionListeners(TestExecutionListener... listeners)
Register one or more listeners for test execution.
|
Modifier and Type | Class and Description |
---|---|
private class |
TestExecutionListenerRegistry.CompositeTestExecutionListener |
Modifier and Type | Field and Description |
---|---|
private TestExecutionListener |
ExecutionListenerAdapter.testExecutionListener |
Modifier and Type | Field and Description |
---|---|
private java.util.List<TestExecutionListener> |
TestExecutionListenerRegistry.testExecutionListeners |
Modifier and Type | Method and Description |
---|---|
(package private) TestExecutionListener |
TestExecutionListenerRegistry.getCompositeTestExecutionListener() |
Modifier and Type | Method and Description |
---|---|
(package private) java.util.List<TestExecutionListener> |
TestExecutionListenerRegistry.getTestExecutionListeners() |
(package private) java.lang.Iterable<TestExecutionListener> |
ServiceLoaderTestExecutionListenerRegistry.loadListeners() |
Modifier and Type | Method and Description |
---|---|
private TestExecutionListenerRegistry |
DefaultLauncher.buildListenerRegistryForExecution(TestExecutionListener... listeners) |
void |
DefaultLauncher.execute(LauncherDiscoveryRequest discoveryRequest,
TestExecutionListener... listeners) |
private void |
DefaultLauncher.execute(Root root,
ConfigurationParameters configurationParameters,
TestExecutionListener... listeners) |
(package private) void |
TestExecutionListenerRegistry.registerListeners(TestExecutionListener... listeners) |
void |
DefaultLauncher.registerTestExecutionListeners(TestExecutionListener... listeners) |
Modifier and Type | Method and Description |
---|---|
private void |
TestExecutionListenerRegistry.notifyTestExecutionListeners(java.util.function.Consumer<TestExecutionListener> consumer) |
Constructor and Description |
---|
ExecutionListenerAdapter(TestPlan testPlan,
TestExecutionListener testExecutionListener) |
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 |
---|---|
(package private) class |
JUnitPlatformRunnerListener |
Modifier and Type | Class and Description |
---|---|
(package private) class |
RunListenerAdapter |