Search code examples
cucumbercucumber-jvmcucumber-java

How to write @cucumberoptions as format="html:folderpath" in new version of cucumber?


There is change in new version which do not allow to use format={}, says its deprecated. can anyone help how to write the same in new version generate a HTML report at the location mentioned.


Solution

  • format has been replaced with plugin so you can use:

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