Charlie S
Charlie S

Reputation: 4594

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

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?

Upvotes: 1

Views: 3847

Answers (3)

Kingsly Bose
Kingsly Bose

Reputation: 123

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

Screenshot

Upvotes: 0

Marit
Marit

Reputation: 3026

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

Upvotes: 0

Matheno
Matheno

Reputation: 4142

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

Upvotes: 1

Related Questions