I'd like to batch UI tests (right now, I guess unit tests would be useful some time)
Neither Xcode UI tests nor "fastlane scan" seem to have any inherent support for this as of now. Is there a good and simple approach?
Situation
I need to test a certain UI test N times.
Real world situation
I need to test a certain UI test 100 times and get an output at the end of batch:
- how many iterations succeeded / failed
- any logs of the failed iterations
What I have tried (and am doing as of now)
In a fastfile, fastlane scan
could be used like this to batch. However the output files all end up in separate directories and it would be quite (?) some work aggregating all these results. It's not like scan
returns a boolean or anything denoting the success status of the test? (Also actually scan does likely not support running a certain test, it runs them all)
100.times do |index|
puts "Running test iteration #{index}..."
scan(scheme: schemefortesting,
output_directory: "fastlane/tests/test_output_#{index}",
destination: 'name=Myrealworldiphonename'
)
end