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

£可爱£侵袭症+ 提交于 2019-12-21 07:08:37

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!