0

This is my runner class:

@RunWith(CucumberWithSerenity.class)
@CucumberOptions(features = "src/test/resources/features/"
    ,glue={"stepdefs"}
    ,dryRun=false
    ,monochrome=true
    ,plugin = {pretty})

public class Runner {
}

I don't have any issue with running using mvn. I don't get any step undefined error. This is only eclipse issue where it can't recognize the step def. I am using eclipse Version: 2020-12. I have converted my project to cucumber project as well. Please assist me if i am missing anything? Do i need to add any other jars? However i added this below dependency as well:

        <dependency>
          <groupId>io.cucumber</groupId>
          <artifactId>gherkin</artifactId>
          <version>3.2.0</version>
        </dependency>

Still no luck.

0