I am facing an error when I try to run a simple cucumber feature file using junit. Any help will be awesome.
0
votes
1 Answers
0
votes
U need to also add cucumber-expressions, datatable and datatable-dependencies jar.

Easier to just use maven to manage dependencies. Just add below dependencies to the POM
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-java8</artifactId>
<version>4.4.0</version>
<scope>test</scope>
</dependency>
If u are using junit runner add the cucumber-junit dependency. For testng runner add cucumber-testng.