fastlane-plugin-test_center --> version 3.11.5
using multi_scan below code
multi_scan(
workspace: "ABC.xcworkspace",
scheme: options[:scheme],
code_coverage: true,
output_types: 'junit',
output_files: "junit.xml",
try_count: 3, # retry _failing_ tests up to three times^1.
batch_count: 6,
code_coverage: true,
parallel_testrun_count: 6, # run subsets of your tests on parallel simulators^2
testrun_completed_block: test_run_block,
devices: "iPhone 11",
result_bundle: "TestResults" # To generate test reports
)
Currently this produces following folder (I have two test target in my project ABCTest and ABCUITest):
ProjectDirectory/fastlane/test_output/ABCTest/report.test_result
ProjectDirectory/fastlane/test_output/ABCUITest/report.test_result
Since I have multiple CI/CD jobs targeting different branches, I want to pass branch name in the test output folder path so results from other job don't overwrite. Where in the multi_scan I specify test_output folder name or path?
I'll teach you how to fish rather than giving you the answer directly.
multi_scan action.scan parameters.Added parameter output_directory = "./fastlane/test_output/" + options[:branch]
Will update here once pipeline job completes.
It works
Teach your friends! 馃