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 . |
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 | Method and Description |
---|---|
Collection<TestExecutionListener> |
LauncherConfig.getAdditionalTestExecutionListeners()
Get the collection of additional test execution listeners that should be
added to the
Launcher . |
Modifier and Type | Method and Description |
---|---|
LauncherConfig.Builder |
LauncherConfig.Builder.addTestExecutionListeners(TestExecutionListener... listeners)
Add all of the supplied
listeners to the configuration. |
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. |
Copyright © 2018. All rights reserved.