renatoathaydes / spock-reports

This project creates a global extension to Spock to create test reports.
Apache License 2.0
273 stars 68 forks source link

Generating multiple report formats #225

Closed ekozynin closed 2 years ago

ekozynin commented 2 years ago

What is the recommendation on generating multiple report formats, for example both HTML (out-of-the-box) and custom JSON reports?

thank you

renatoathaydes commented 2 years ago

In the README page, there's a list of properties you can use to configure spock-reports, the first of which is:

# Name of the implementation class(es) of report creator(s) to enable (separate multiple entries with commas)
# Currently supported classes are:
#   1. com.athaydes.spockframework.report.internal.HtmlReportCreator
#   2. com.athaydes.spockframework.report.template.TemplateReportCreator
com.athaydes.spockframework.report.IReportCreator=com.athaydes.spockframework.report.internal.HtmlReportCreator

As it says, you can use , to use more than one report creator.