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" })
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 .
Cucumber Options Strict Deprecated true: Your program will execute but that is of no use. Even if you remove strict = true.
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.
replace format with plugin
@CucumberOptions( monochrome = true,plugin = {"html:target/cucumber-html-report", "json:target/cucumber-json-report.json" })
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With