Class FeaturesPropertyResolver

java.lang.Object
io.cucumber.junit.platform.engine.FeaturesPropertyResolver

class FeaturesPropertyResolver extends Object
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.

  • Field Details

  • Constructor Details

  • 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()