Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to resolve the deprecation of format option in @CucumberOptions?

Tags:

When i am using the option format in @CucumberOptions for test reports it is showing that the format option has been deprecated how to resolve that.

@CucumberOptions( monochrome = true, format = {"html:target/cucumber-html-report", "json:target/cucumber-json-report.json" })
like image 451
Akshay jain Avatar asked Jun 30 '15 12:06

Akshay jain


People also ask

What are the main options available in @CucumberOptions?

The @CucumberOptions can be used to provide additional configuration to the runner. The default option for snippets is UNDERSCORE . This settings can be used to specify the way code snippets will be created by Cucumber. The default option for dryRun is false .

Is strict is deprecated in cucumber?

Cucumber Options Strict Deprecated true: Your program will execute but that is of no use. Even if you remove strict = true.

When strict is used it will fail the execution if any step is missed in step definition?

true: if Strict option is set to true then at execution time if cucumber encounters any undefined/pending steps then cucumber does fails the execution and undefined steps are marked as fail and BUILD is FAILURE.


1 Answers

replace format with plugin

@CucumberOptions( monochrome = true,plugin = {"html:target/cucumber-html-report", "json:target/cucumber-json-report.json" })

like image 164
Paizo Avatar answered Sep 18 '22 11:09

Paizo