测试框架意外退出 - Cucumber Test - Intellij Via Feature file

时间:2021-02-08 13:49:19

标签: intellij-idea cucumber

当我通过 Runner 类运行我的 cucucumber 测试时,它们运行良好,但是当通过功能文件运行时,我在 Intellij Idea 2020.3 中收到此错误

测试框架意外退出

enter image description here

下面是一个成功通过Runner类运行

enter image description here

请让我知道我在通过功能文件运行时出错的地方

在查看现有答案后也附上配置

enter image description here

这是代码 https://github.com/gauravkhuraana/RestAssured_ToolsQA

1 个答案:

答案 0 :(得分:0)

感谢@y.bedrov 的指导

主类中添加以下内容进行配置

io.cucumber.core.cli.Main

并在配置中为 StepDefintion 添加文件夹名称(不是完整路径)已解决此问题

enter image description here

相关问题