Module org.junit.platform.launcher
Package org.junit.platform.launcher.core
Class EngineDiscoveryOrchestrator
java.lang.Object
org.junit.platform.launcher.core.EngineDiscoveryOrchestrator
@API(status=INTERNAL,
since="1.7",
consumers={"org.junit.platform.testkit","org.junit.platform.suite.engine"})
public class EngineDiscoveryOrchestrator
extends Object
Orchestrates test discovery using the configured test engines.
- Since:
- 1.7
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionEngineDiscoveryOrchestrator(Iterable<TestEngine> testEngines, Collection<PostDiscoveryFilter> postDiscoveryFilters)
-
Method Summary
Modifier and TypeMethodDescriptiondiscover(LauncherDiscoveryRequest request, EngineDiscoveryOrchestrator.Phase phase)
Discovers tests for the supplied request in the supplied phase using the configured test engines.discover(LauncherDiscoveryRequest request, EngineDiscoveryOrchestrator.Phase phase, UniqueId parentId)
Discovers tests for the supplied request in the supplied phase using the configured test engines to be used by the suite engine.
-
Constructor Details
-
EngineDiscoveryOrchestrator
public EngineDiscoveryOrchestrator(Iterable<TestEngine> testEngines, Collection<PostDiscoveryFilter> postDiscoveryFilters)
-
-
Method Details
-
discover
public LauncherDiscoveryResult discover(LauncherDiscoveryRequest request, EngineDiscoveryOrchestrator.Phase phase)Discovers tests for the supplied request in the supplied phase using the configured test engines.Applies engine filters and post-discovery filters and prunes the resulting test tree.
-
discover
public LauncherDiscoveryResult discover(LauncherDiscoveryRequest request, EngineDiscoveryOrchestrator.Phase phase, UniqueId parentId)Discovers tests for the supplied request in the supplied phase using the configured test engines to be used by the suite engine.Applies engine filters and post-discovery filters and prunes the resulting test tree. Note: The test descriptors in the discovery result can safely be used as non-root descriptors. Engine-test descriptor entries are pruned from the returned result. As such execution by
EngineExecutionOrchestrator.execute(LauncherDiscoveryResult, EngineExecutionListener)
will not emit start or emit events for engines without tests.
-