[英]How can I generate the cucumber json report with karate
At the moment, only hml cucumber reports are generated and also karate reports in json format but I can't get the Cucumber reports in json format to be able to use them in an integration Help!
The runner file looks like this ` enter image description here跑步者文件看起来像这样 `在此处输入图像描述
I have the configuration that you showed and the Cucumber reporting dependency, I don't know what else I need
since I am only getting the html report from cucumber and I need the json
<configuration>
<projectName>karate_automatione</projectName>
<outputDirectory>${project.build.directory}/cucumber-report-html</outputDirectory>
<cucumberOutput>${project.build.directory}/cucumber.json</cucumberOutput>
</configuration>
Look in the karate-reports
folder.查看
karate-reports
文件夹。 Any files with the *.json
extension are in Cucumber JSON format.任何带有
*.json
扩展名的文件都是 Cucumber JSON 格式。
But each Feature
will have a separate JSON output. But most tools that handle the Cucumber JSON are able to process multiple at a time.但是每个
Feature
都会有一个单独的 JSON output。但是大多数处理 Cucumber JSON 的工具都能够一次处理多个。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.