我不断收到错误,"Unimplemented substep definition" in IntelliJ with Cucumber?
I keep getting the error, "Unimplemented substep definition" in IntelliJ with Cucumber?
我已经:
- 已下载
Cucumber Java
、Gherkin plugin
- 我已经有
the steps
和 features
个目录:
我的目录结构是这样的:
- test
- java
- features
- featureSet1
- oneFeature.feature
- anotherFeature.feature
- featuresSet2
- twoFeature.feature
- CucumberTests.java
- steps
- step1.java
- step2.java
在功能文件夹下,我有一个名为 CucumberTests.java
的文件。我可以通过 mvn test
运行 进行测试,但红色错误标记真的让我很烦。
我在 CucumberTest.java
中有这些标签,应该 运行 测试:
@RunWith(Cucumber.class)
@CucumberOptions(plugin = { "pretty", "html:target/surefire-
reports/cucumber", "json:target/surefire-
reports/cucumberOriginal.json"},
features = {"src/test/java/features/featuresSet1",
"src/test/java/features/featuresSet2",
},
tags = {"~@ignore"},
glue = {"steps"})
问题来自 Substeps IntelliJ Plugin
,当 IntelliJ
在您的项目中找到 .feature
文件时建议您安装。
弹出此扩展程序时忽略它,如果您已经安装了它,请将其卸载。
Cucumber for Java
和 Gherkin
应该足够了。
我已经:
- 已下载
Cucumber Java
、Gherkin plugin
- 我已经有
the steps
和features
个目录:
我的目录结构是这样的:
- test
- java
- features
- featureSet1
- oneFeature.feature
- anotherFeature.feature
- featuresSet2
- twoFeature.feature
- CucumberTests.java
- steps
- step1.java
- step2.java
在功能文件夹下,我有一个名为 CucumberTests.java
的文件。我可以通过 mvn test
运行 进行测试,但红色错误标记真的让我很烦。
我在 CucumberTest.java
中有这些标签,应该 运行 测试:
@RunWith(Cucumber.class)
@CucumberOptions(plugin = { "pretty", "html:target/surefire-
reports/cucumber", "json:target/surefire-
reports/cucumberOriginal.json"},
features = {"src/test/java/features/featuresSet1",
"src/test/java/features/featuresSet2",
},
tags = {"~@ignore"},
glue = {"steps"})
问题来自 Substeps IntelliJ Plugin
,当 IntelliJ
在您的项目中找到 .feature
文件时建议您安装。
弹出此扩展程序时忽略它,如果您已经安装了它,请将其卸载。
Cucumber for Java
和 Gherkin
应该足够了。