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
Nested Classes Modifier and Type Class Description static class
EngineDiscoveryOrchestrator.Phase
-
Constructor Summary
Constructors Constructor Description EngineDiscoveryOrchestrator(Iterable<TestEngine> testEngines, Collection<PostDiscoveryFilter> postDiscoveryFilters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LauncherDiscoveryResult
discover(LauncherDiscoveryRequest request, EngineDiscoveryOrchestrator.Phase phase)
Discovers tests for the supplied request in the supplied phase using the configured test engines.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.
-
-
-
Constructor Detail
-
EngineDiscoveryOrchestrator
public EngineDiscoveryOrchestrator(Iterable<TestEngine> testEngines, Collection<PostDiscoveryFilter> postDiscoveryFilters)
-
-
Method Detail
-
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.
-
-