Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Latest commit

 

History

History
37 lines (25 loc) · 1.25 KB

collate_html_reports.md

File metadata and controls

37 lines (25 loc) · 1.25 KB

🔶 collate_html_reports

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 for collate_html_reports, set the environment variable COLLATE_HTML_REPORTS_VERBOSITY to 0.

collate html image

Example

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')
)

Parameters

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