@API(status=EXPERIMENTAL, since="1.6") public class LauncherDiscoveryListeners extends Object
static
factory methods for creating
LauncherDiscoveryListeners
.Modifier and Type | Method and Description |
---|---|
static LauncherDiscoveryListener |
abortOnFailure()
Create a
LauncherDiscoveryListener that aborts test discovery on
failures. |
static LauncherDiscoveryListener |
composite(List<LauncherDiscoveryListener> listeners) |
static LauncherDiscoveryListener |
fromConfigurationParameter(String key,
String value) |
static LauncherDiscoveryListener |
logging()
Create a
LauncherDiscoveryListener that logs test discovery
events based on their severity. |
public static LauncherDiscoveryListener abortOnFailure()
LauncherDiscoveryListener
that aborts test discovery on
failures.
The following events are considered failures:
UniqueIdSelector
that starts with the engine's unique ID.
Throwable
thrown by
TestEngine.discover(org.junit.platform.engine.EngineDiscoveryRequest, org.junit.platform.engine.UniqueId)
.
public static LauncherDiscoveryListener logging()
LauncherDiscoveryListener
that logs test discovery
events based on their severity.
For example, failures during test discovery are logged as errors.
@API(status=INTERNAL, since="1.6") public static LauncherDiscoveryListener composite(List<LauncherDiscoveryListener> listeners)
@API(status=INTERNAL, since="1.6") public static LauncherDiscoveryListener fromConfigurationParameter(String key, String value)
Copyright © 2020. All rights reserved.