Can I run multiple IOS UI Parallel tests?

I am working on creating a user interface set for my iOS application. I need to test the functionality of my application on several different devices, but now I have to select the simulator that I want, run the tests, and then repeat.

Now that Xcode supports multiple simulators running in parallel, is there a way to run user interface tests on several different simulators at the same time?

+4
source share
1 answer

Run the following command in the same directory as your project to run tests in parallel from the command line:

xcodebuild test -scheme "YourSchemeName" -destination 'platform=iOS Simulator,OS=11.2,name=iPhone 8' -destination 'platform=iOS Simulator,OS=11.2,name=iPhone 6s'  -configuration "Debug" ENABLE_TESTABILITY=YES SWIFT_VERSION=4.0 ONLY_ACTIVE_ARCH=YES

-destination 'platform=iOS Simulator,OS=11.2,name=iPhone 8' , .

:

instruments -s devices

, , .

+1

Source: https://habr.com/ru/post/1690561/


All Articles