我正在使用JUnit测试配置来运行我的测试,并且功能文件正确地识别了其相关的步骤定义。在最近的IntelliJ更新(至Ultimate 2020)之后,我的功能文件将所有Gherkin语句显示为未定义。即使当我尝试通过悬停使用“创建步骤定义”链接来创建虚拟对象时,它仍抱怨“文件位置”的“步骤定义目录路径不正确”。这些是我遵循的:
@RunWith(Cucumber.class)
@CucumberOptions(
features = {"classpath:features"}
,glue = "xxxx/stepDefinitions"
,tags = {"@xxx","@yyyy"}
,plugin ={"com.vimalselvam.cucumber.listener.ExtentCucumberFormatter:target/report/report.html"}
)
有人可以帮忙解决任何遗漏的步骤并解决我的问题吗?