繁体   English   中英

如何用空手道生成 cucumber json 报告

[英]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!

跑步者文件看起来像这样 `在此处输入图像描述

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>

查看karate-reports文件夹。 任何带有*.json扩展名的文件都是 Cucumber JSON 格式。

但是每个Feature都会有一个单独的 JSON output。但是大多数处理 Cucumber JSON 的工具都能够一次处理多个。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM