I have created some cucumber test steps and a small Cucumber test case, which I run with JUnit like so:
@RunWith(Cucumber.class) public class FuelCarTest {
You can use @CucumberOptions instead of @Cucumber.Options
@RunWith(Cucumber.class) @CucumberOptions( format = "pretty", tags = {"~@Ignore"}, features = "src/test/resources/com/" //refer to Feature file ) public class CucumberIT { }