如何在新版本的黄瓜中将@cucumberoptions写为format =“html:folderpath”?

问题描述 投票:1回答:1

新版本有变化,不允许使用format = {},不赞成使用。任何人都可以帮助如何在新版本中编写相同的内容,在所提到的位置生成HTML报告。

cucumber cucumber-jvm cucumber-java
1个回答
1
投票

format已被plugin取代,因此您可以使用:

@CucumberOptions(plugin = {"progress", "html:target/cucumber-report.html"})
© www.soinside.com 2019 - 2024. All rights reserved.