Cucumber Eclipse - Resolving warning: Cucumber-JVM

2019-08-27 10:55发布

Running Cucumber with Eclipse and getting the following warning:

Cucumber-JVM's --format option is deprecated. Please use --plugin instead

Tried to use Eclipse search functionality to search for "--format" and "format" but unable to find the relevant file I need to change. Any ideas?

2条回答
够拽才男人
2楼-- · 2019-08-27 11:34

In

cucumber-java/src/org/jetbrains/plugins/cucumber/java/run/CucumberJavaRunConfigurationProducer.java

change

public static final String FORMATTER_OPTIONS = " --format org.jetbrains.plugins.cucumber.java.run.CucumberJvmSMFormatter --monochrome";

to

public static final String FORMATTER_OPTIONS = " --plugin pretty";

查看更多
对你真心纯属浪费
3楼-- · 2019-08-27 11:37

--format is deprecated and will be removed in Cucumber v3.x

In your Run Configurations change --format org.jetbrains.plugins.cucumber.java.run.CucumberJvmSMFormatter (or whatever the Eclipse equivalent is) to --plugin pretty

查看更多
登录 后发表回答