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 {
here feature keyword for path of your feature file folder example: my feature files folder located in desktop
so feature keyword value feature="C:\Users\sanjay\Desktop\features"
@RunWith(Cucumber.class)
@CucumberOptions(
features = "C:\\Users\\sanjay\\Desktop\\features"
,glue={"com.stepDefination"}
,monochrome = false,
format = {"pretty", "html:target/Destination"}
)
public class TestRunner {
}