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
-
Constructor Summary
ConstructorsConstructorDescriptionEngineDiscoveryOrchestrator
(Iterable<TestEngine> testEngines, Collection<PostDiscoveryFilter> postDiscoveryFilters) -
Method Summary
Modifier and TypeMethodDescriptiondiscover
(LauncherDiscoveryRequest request) Discovers tests for the supplied request using the configured test engines.discover
(LauncherDiscoveryRequest request, 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
Discovers tests for the supplied request using the configured test engines.Applies engine filters and post-discovery filters and prunes the resulting test tree.
-
discover
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
will not emit start or emit events for engines without tests.
-