Specify the feature file location in cucumber

后端 未结 5 1646
暖寄归人
暖寄归人 2021-01-05 09:49

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 {
         


        
5条回答
  •  一整个雨季
    2021-01-05 10:13

    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 {
    
    }

提交回复
热议问题