【发布时间】:2020-12-08 19:31:24
【问题描述】:
当我运行以下 Runner 类时,测试失败,说它找不到指定的标签。当我自己指定任何标签时,测试就会执行并通过。
为什么我一次只能指定一个标签?
@RunWith(Cucumber.class)
@CucumberOptions(plugin = {
"pretty", "com.cucumber.listener.ExtentCucumberFormatter:target/cucumber-reports/report.html"
}, glue = {
"cars"
}, features = {
"classpath:feature/",
}, tags = {"@edit-car", "@create-car", "@delete-car"})
public class RunnerTest {}
错误
None of the features at [classpath:feature/] matched the filters: [@edit-car, @create-car, @delete-car]
【问题讨论】:
标签: java cucumber cucumber-jvm