在运行Cucumber功能时使用 Shorten命令行选项( JAR manifest )时,我无法运行单个方案。
错误: CucumberException:未知选项:--plugin
如果我清空“程序参数:”字段,则所有方案都将运行。
这发生在 IntelliJ Idea Ultimate 2018.3.4以及2018.2.2中。
黄瓜核心版本:1.1.8
我尝试使用黄瓜核心版本:1.2.5,但失败了:
Exception in thread "main" java.lang.IncompatibleClassChangeError: Found class org.springframework.test.context.TestContext, but interface was expected
at cucumber.runtime.java.spring.CucumberTestContextManager.getContext(SpringFactory.java:215)
at cucumber.runtime.java.spring.CucumberTestContextManager.<init>(SpringFactory.java:207)
at cucumber.runtime.java.spring.SpringFactory.start(SpringFactory.java:102)
at cucumber.runtime.java.JavaBackend.buildWorld(JavaBackend.java:123)
at cucumber.runtime.Runtime.buildBackendWorlds(Runtime.java:141)
at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:38)
at cucumber.runtime.model.CucumberFeature.run(CucumberFeature.java:165)
at cucumber.runtime.Runtime.run(Runtime.java:122)
at cucumber.api.cli.Main.run(Main.java:36)
at cucumber.api.cli.Main.main(Main.java:18)