WebStorm/Intellij Gherkin 测试配置运行

问题描述

如何使用 WebStorm 功能文件设置运行配置?

当我点击绿色运行按钮时,WebStorm 似乎找不到步骤实现。

我怎样才能改变 WebStorm 对它应该从哪里采取措施的理解?

当我使用命令行运行测试时,它可以工作,我有配置文件,我在其中声明了步骤文件夹。

enter image description here

enter image description here

解决方法

您可以将 --require path/to/step/definitions 指定为 Cucumber.js 参数: 字段:

enter image description here