Cucumber Eclipse - Resolving warning: Cucumber-JVM's --format option is deprecated. Please use --plugin instead

感情迁移 提交于 2019-12-12 06:35:36

问题


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?


回答1:


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";




回答2:


--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




回答3:


I have faced the similar issue in Intellij IDE. Below steps solved it!

  1. Go to Run
  2. Click Edit configurations..
  3. Rename --Format to --plugin
  4. Click Ok and Run feature file again



来源:https://stackoverflow.com/questions/29341877/cucumber-eclipse-resolving-warning-cucumber-jvms-format-option-is-deprecat

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!