Do you have multiple html test reports coming in from different sources and need them combined? Use this action to collate all the tests performed for a given test target into one report file.
Note: if you want to use
--verbose
to get more detailed logging, but you don't want to see the detailed logging forcollate_html_reports
, set the environment variableCOLLATE_HTML_REPORTS_VERBOSITY
to 0.
UI.important(
'example: ' \
'collate the html reports to a temporary file "result.html"'
)
reports = Dir['../spec/fixtures/*.html'].map { |relpath| File.absolute_path(relpath) }
collate_html_reports(
reports: reports,
collated_report: File.join(Dir.mktmpdir, 'result.html')
)
Parameter | Description | Default Value |
---|---|---|
reports | An array of HTML reports to collate. The first report is used as the base into which other reports are merged in | |
collated_report | The final HTML report file where all testcases will be merged into | result.html |