1 | initial version |
To configure the path to your Cucumber features using cucumber-junit, follow these steps:
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-junit</artifactId>
<version>{version}</version>
<scope>test</scope>
</dependency>
@RunWith(Cucumber.class)
@CucumberOptions(features = "src/test/resources/features")
public class TestRunner {
}
In this example, the features are located in the "src/test/resources/features" directory. You can modify the path accordingly to match your project structure.
With these steps, you have configured the path to your Cucumber features and can now write and execute your tests.