Class FeaturesPropertyResolver
java.lang.Object
io.cucumber.junit.platform.engine.FeaturesPropertyResolver
Decorator to support resolving the
"cucumber.features"
property.
The JUnit Platform provides various discovery selectors to select feature files. Unfortunately, these do not yet receive support from IDEs, Maven or Gradle. Resolving this property allows uses to target a single feature, scenario or example from the commandline.
This class decorates the DiscoverySelectorResolver. When the features
property is provided it replaces the discovery request.
Note: This effectively causes Cucumber to ignore any requests from the JUnit Platform. So features will be discovered even when none are expected to be.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static org.junit.platform.engine.DiscoveryIssue(package private) voidresolveSelectors(org.junit.platform.engine.EngineDiscoveryRequest request, CucumberEngineDescriptor engineDescriptor, org.junit.platform.engine.support.discovery.DiscoveryIssueReporter issueReporter)
-
Field Details
-
delegate
-
-
Constructor Details
-
FeaturesPropertyResolver
FeaturesPropertyResolver(DiscoverySelectorResolver delegate)
-
-
Method Details
-
resolveSelectors
void resolveSelectors(org.junit.platform.engine.EngineDiscoveryRequest request, CucumberEngineDescriptor engineDescriptor, org.junit.platform.engine.support.discovery.DiscoveryIssueReporter issueReporter) -
createCucumberFeaturesPropertyIsUsedIssue
private static org.junit.platform.engine.DiscoveryIssue createCucumberFeaturesPropertyIsUsedIssue()
-