我有一个多模块maven项目,用于在每个模块中生成Cucumber报告。现在,我需要将生成的报告的目标位置更改为根pom目录中的目标文件夹。有可能做这样的事吗?
@CucumberOptions(plugin = { "pretty", "html:path-to-parent-pom/target/testresult"})
对于使用maven-project-info-reports-plugin
生成的其他报告,有一个配置选项可以解决此问题。
<aggregate>true</aggregate>
Cucumber的报道有这样的内容吗?
您可以在Cucumber中使用Json Report选项,Json报告将由Maven读取。我想我就是这么做的。允许Json选择这里是
@CucumberOptions(plugin = { "pretty",
"json:target/testresult.json" }
我用这个插件进行配置http://damienfremont.com/2015/07/30/how-to-cucumber-test-reporting-plugin-with-maven-and-java/