Module org.junit.platform.launcher
Class LauncherDiscoveryListeners
java.lang.Object
org.junit.platform.launcher.listeners.discovery.LauncherDiscoveryListeners
Collection of
static
factory methods for creating
LauncherDiscoveryListeners
.- Since:
- 1.6
-
Method Summary
Modifier and TypeMethodDescriptionstatic LauncherDiscoveryListener
Create aLauncherDiscoveryListener
that aborts test discovery on failures.static LauncherDiscoveryListener
composite
(List<LauncherDiscoveryListener> listeners) static LauncherDiscoveryListener
fromConfigurationParameter
(String key, String value) static LauncherDiscoveryListener
logging()
Create aLauncherDiscoveryListener
that logs test discovery events based on their severity.
-
Method Details
-
abortOnFailure
Create aLauncherDiscoveryListener
that aborts test discovery on failures.The following events are considered failures:
- a failed resolution result.
-
an unresolved resolution result for a
UniqueIdSelector
that starts with the engine's unique ID. -
any recoverable
Throwable
thrown byTestEngine.discover(org.junit.platform.engine.EngineDiscoveryRequest, org.junit.platform.engine.UniqueId)
.
-
logging
Create aLauncherDiscoveryListener
that logs test discovery events based on their severity.For example, failures during test discovery are logged as errors.
-
composite
@API(status=INTERNAL, since="1.6") public static LauncherDiscoveryListener composite(List<LauncherDiscoveryListener> listeners) -
fromConfigurationParameter
-