Running Cucumber with Eclipse and getting the following warning:
使用Eclipse运行黄瓜并得到以下警告:
Cucumber-JVM's --format option is deprecated. Please use --plugin instead
不赞成使用黄瓜- jvm的格式选项。请使用——插件
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?
尝试使用Eclipse搜索功能搜索“——格式”和“格式”,但无法找到需要更改的相关文件。什么好主意吗?
2 个解决方案
#1
1
In
在
cucumber-java/src/org/jetbrains/plugins/cucumber/java/run/CucumberJavaRunConfigurationProducer.java
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";
public static final String FORMATTER_OPTIONS = " -format org.jetbrains.plugins. . . .。
to
来
public static final String FORMATTER_OPTIONS = " --plugin pretty";
公共静态最终字符串FORMATTER_OPTIONS = " -plugin pretty";
#2
0
--format
is deprecated and will be removed in Cucumber v3.x
——格式被弃用,将在黄瓜v3.x中删除。
In your Run Configurations change --format org.jetbrains.plugins.cucumber.java.run.CucumberJvmSMFormatter
(or whatever the Eclipse equivalent is) to --plugin pretty
在您的运行配置中,更改——格式org.jetbrain .plugins.黄瓜。java. run.黄瓜jvmsmformatter(或其他类似Eclipse的东西)-插件漂亮。
#1
1
In
在
cucumber-java/src/org/jetbrains/plugins/cucumber/java/run/CucumberJavaRunConfigurationProducer.java
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";
public static final String FORMATTER_OPTIONS = " -format org.jetbrains.plugins. . . .。
to
来
public static final String FORMATTER_OPTIONS = " --plugin pretty";
公共静态最终字符串FORMATTER_OPTIONS = " -plugin pretty";
#2
0
--format
is deprecated and will be removed in Cucumber v3.x
——格式被弃用,将在黄瓜v3.x中删除。
In your Run Configurations change --format org.jetbrains.plugins.cucumber.java.run.CucumberJvmSMFormatter
(or whatever the Eclipse equivalent is) to --plugin pretty
在您的运行配置中,更改——格式org.jetbrain .plugins.黄瓜。java. run.黄瓜jvmsmformatter(或其他类似Eclipse的东西)-插件漂亮。