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

Latest commit

 

History

History
36 lines (26 loc) · 1012 Bytes

collate_xcresults.md

File metadata and controls

36 lines (26 loc) · 1012 Bytes

🔸 collate_xcresults

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

Example

require 'tmpdir'

UI.important(
  'example: ' \
  'collate the xcresult bundles to a temporary xcresult bundle "result.xcresult"'
)
xcresults = Dir['../spec/fixtures/AtomicBoyUITests-batch-{3,4}/result.xcresult'].map { |relpath| File.absolute_path(relpath) }
Dir.mktmpdir('test_output') do |dir|
  collate_xcresults(
    xcresults: xcresults,
    collated_xcresult: File.join(dir, 'result.xcresult')
  )
end

Parameters

Parameter Description Default Value
xcresults An array of xcresult bundles to collate
collated_xcresult The merged xcresult bundle result.xcresult