簡體   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