uber / ios-snapshot-test-case

Snapshot view unit tests for iOS
MIT License
1.79k stars 211 forks source link

Run Snapshot tests in parallel #113

Open mime29 opened 4 years ago

mime29 commented 4 years ago

It would be great to be able to run all tests on X devices at the same time. Is there a way to do it nicely?

Last time I tried to start multiple fastlane scan the snapshots were inconsistent.

Kurt57 commented 4 years ago

Something like this ?

xcodebuild -workspace XXX.xcworkspace -scheme "XXXSnapShotTests" -destination name="iPhone 5" -destination name="iPhone 8" -destination name="iPhone 8 Plus" -destination name="iPhone 11 Pro" -destination name="iPhone 11 Pro Max" clean test

mime29 commented 4 years ago

How different is it compared to our first approach? We don't know why the snapshots actually end up being inconsistent. I think information about that aspect would help to find a great solution