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.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2022-01-06 11:00:00 +0000
Seen: 10 times
Last updated: Aug 16 '22
When using Polars and Glob to read Parquet from S3, why does it only read the first file?
What is the process for adding a class path permanently to the Mac terminal?
Why isn't the CSS background image being displayed?
What are the steps to install Homebrew in the /opt/ directory?
How can I insert a file path into Tkinter through drag and drop function?
What is preventing me from adding new static files to my springboot web application?
How can I extract the directory name from a given path in bash?