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.
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
Parameter | Description | Default Value |
---|---|---|
xcresults | An array of xcresult bundles to collate | |
collated_xcresult | The merged xcresult bundle | result.xcresult |