问题
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" })
回答1:
replace format with plugin
@CucumberOptions( monochrome = true,plugin = {"html:target/cucumber-html-report", "json:target/cucumber-json-report.json" })
来源:https://stackoverflow.com/questions/31138086/how-to-resolve-the-deprecation-of-format-option-in-cucumberoptions