【发布时间】:2023-03-05 02:11:01
【问题描述】:
我在用黄瓜运行 testrunner 时遇到问题。我需要有人帮我检查@CucumberOptions。谢谢
package stepDefinition;
import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
@RunWith (Cucumber.class)
@CucumberOptions (features = "Feature"
,glue={"stepDefinition"})
public class testRunner {
}
【问题讨论】:
-
添加问题,什么是项目结构?对于功能,您需要添加保存功能文件的目录路径,例如 src\test....\feature\。对于胶水添加包类路径 cucumber.test.steps
标签: junit cucumber cucumber-junit