如何解决@CucumberOptions中格式选项的弃用?

Aks*_*ain 15 java cucumber

当我在测试报告中使用选项格式@CucumberOptions,它显示已弃用格式选项如何解决该问题.

@CucumberOptions( monochrome = true, format = {"html:target/cucumber-html-report", "json:target/cucumber-json-report.json" })
Run Code Online (Sandbox Code Playgroud)

Pai*_*izo 19

插件替换格式

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