简体   繁体   中英

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. Any files with the *.json extension are in Cucumber JSON format.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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