Specify the feature file location in cucumber

后端 未结 5 1661
暖寄归人
暖寄归人 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:14

    Here you can specify feature file from a folder, tag name and test outputs.

     @RunWith(Cucumber.class)
     @CucumberOptions(features="src/Login.feature",
        format = {"pretty", "html:target/report/",
        "json:target/report/cucu_json_report.json",
        "junit:target/report/cucumber_junit_report.xml",}
         tags ={"@ra1, @ra2"})
    

提交回复
热议问题