How to specify test_output folder location in multi_scan
ssharma0312 opened this issue · 4 comments
Question Checklist
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.
- Go to the README
- Find and click the
multi_scan
action. - Navigate to the Parameters section and click the link to the
scan
parameters. - Look for the parameter that controls the directory for where reports are stored.
Added parameter output_directory
= "./fastlane/test_output/" + options[:branch]
Will update here once pipeline job completes.
It works
Teach your friends! 🤗