Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 1.12 KB

collate_test_result_bundles.md

File metadata and controls

34 lines (25 loc) · 1.12 KB

🔸 collate_test_result_bundles

Do you have multiple test_result bundles 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 test_result bundle.

Example

UI.important(
  'example: ' \
  'collate the test_result bundles to a temporary bundle "result.test_result"'
)
bundles = Dir['../spec/fixtures/*.test_result'].map { |relpath| File.absolute_path(relpath) }
Dir.mktmpdir('test_output') do |dir|
  collate_test_result_bundles(
    bundles: bundles,
    collated_bundle: File.join(dir, 'result.test_result')
  )
end

Parameters

Parameter Description Default Value
bundles An array of test_result bundles to collate. The first bundle is used as the base into which other bundles are merged in
collated_bundle The final test_result bundle where all testcases will be merged into result.test_result