Do you have multiple json 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.
UI.important(
'example: ' \
'collate the json reports to a temporary file "result.json"'
)
reports = Dir['../spec/fixtures/report*.json'].map { |relpath| File.absolute_path(relpath) }
collate_json_reports(
reports: reports,
collated_report: File.join(Dir.mktmpdir, 'result.json')
)
Parameter | Description | Default Value |
---|---|---|
reports | An array of JSON reports to collate. The first report is used as the base into which other reports are merged in | |
collated_report | The final JSON report file where all testcases will be merged into | result.json |