Class LauncherDiscoveryListeners
- java.lang.Object
-
- org.junit.platform.launcher.listeners.discovery.LauncherDiscoveryListeners
-
@API(status=EXPERIMENTAL, since="1.6") public class LauncherDiscoveryListeners extends java.lang.ObjectCollection ofstaticfactory methods for creatingLauncherDiscoveryListeners.- Since:
- 1.6
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LauncherDiscoveryListenerabortOnFailure()Create aLauncherDiscoveryListenerthat aborts test discovery on failures.static LauncherDiscoveryListenercomposite(java.util.List<LauncherDiscoveryListener> listeners)static LauncherDiscoveryListenerfromConfigurationParameter(java.lang.String key, java.lang.String value)static LauncherDiscoveryListenerlogging()Create aLauncherDiscoveryListenerthat logs test discovery events based on their severity.
-
-
-
Method Detail
-
abortOnFailure
public static LauncherDiscoveryListener abortOnFailure()
Create aLauncherDiscoveryListenerthat aborts test discovery on failures.The following events are considered failures:
- a failed resolution result.
-
an unresolved resolution result for a
UniqueIdSelectorthat starts with the engine's unique ID. -
any recoverable
Throwablethrown byTestEngine.discover(org.junit.platform.engine.EngineDiscoveryRequest, org.junit.platform.engine.UniqueId).
-
logging
public static LauncherDiscoveryListener logging()
Create aLauncherDiscoveryListenerthat 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(java.util.List<LauncherDiscoveryListener> listeners)
-
fromConfigurationParameter
@API(status=INTERNAL, since="1.6") public static LauncherDiscoveryListener fromConfigurationParameter(java.lang.String key, java.lang.String value)
-
-