Can I run several iOS UI Tests in Parallel?
up vote
5
down vote
favorite
I'm working on building a UI Test suite for my iOS app. I need to test my app's functionality on several different devices, but right now I have to select the simulator I want, run the tests, and then repeat.
Now that Xcode supports multiple simulators running in parallel, is there a way to run the UI tests across several different device simulators at the same time?
ios xcode ios-simulator xcode-ui-testing ui-testing
add a comment |
up vote
5
down vote
favorite
I'm working on building a UI Test suite for my iOS app. I need to test my app's functionality on several different devices, but right now I have to select the simulator I want, run the tests, and then repeat.
Now that Xcode supports multiple simulators running in parallel, is there a way to run the UI tests across several different device simulators at the same time?
ios xcode ios-simulator xcode-ui-testing ui-testing
Have you checked github.com/linkedin/bluepill ?
– Titouan de Bailleul
Dec 12 '17 at 14:56
I was able to this by following this guide: medium.com/@t.camin/parallelizing-ui-tests-28c16000f141.
– CF256
Dec 12 '17 at 15:11
add a comment |
up vote
5
down vote
favorite
up vote
5
down vote
favorite
I'm working on building a UI Test suite for my iOS app. I need to test my app's functionality on several different devices, but right now I have to select the simulator I want, run the tests, and then repeat.
Now that Xcode supports multiple simulators running in parallel, is there a way to run the UI tests across several different device simulators at the same time?
ios xcode ios-simulator xcode-ui-testing ui-testing
I'm working on building a UI Test suite for my iOS app. I need to test my app's functionality on several different devices, but right now I have to select the simulator I want, run the tests, and then repeat.
Now that Xcode supports multiple simulators running in parallel, is there a way to run the UI tests across several different device simulators at the same time?
ios xcode ios-simulator xcode-ui-testing ui-testing
ios xcode ios-simulator xcode-ui-testing ui-testing
asked Dec 11 '17 at 14:54
Bill
17.8k2195183
17.8k2195183
Have you checked github.com/linkedin/bluepill ?
– Titouan de Bailleul
Dec 12 '17 at 14:56
I was able to this by following this guide: medium.com/@t.camin/parallelizing-ui-tests-28c16000f141.
– CF256
Dec 12 '17 at 15:11
add a comment |
Have you checked github.com/linkedin/bluepill ?
– Titouan de Bailleul
Dec 12 '17 at 14:56
I was able to this by following this guide: medium.com/@t.camin/parallelizing-ui-tests-28c16000f141.
– CF256
Dec 12 '17 at 15:11
Have you checked github.com/linkedin/bluepill ?
– Titouan de Bailleul
Dec 12 '17 at 14:56
Have you checked github.com/linkedin/bluepill ?
– Titouan de Bailleul
Dec 12 '17 at 14:56
I was able to this by following this guide: medium.com/@t.camin/parallelizing-ui-tests-28c16000f141.
– CF256
Dec 12 '17 at 15:11
I was able to this by following this guide: medium.com/@t.camin/parallelizing-ui-tests-28c16000f141.
– CF256
Dec 12 '17 at 15:11
add a comment |
2 Answers
2
active
oldest
votes
up vote
2
down vote
Run the following command in the same directory as your project to run your 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
You can add -destination 'platform=iOS Simulator,OS=11.2,name=iPhone 8'
for a different destination for as many different destinations as you would like.
For a list of simulator names and OSs that are available, run the command:
instruments -s devices
Bear in mind that if you are running tests in the simulator, you will not see the simulators on your screen when running tests through the command line.
add a comment |
up vote
0
down vote
- Select your target scheme in Xcode, and "Edit Scheme..."
- Find the settings for "Test", and press on the "Info" tab
- You'll see a list of your Unit and UI tests, press on the associated
"Options..." button - Select "Execute in parallel on Simulator"
- Optionally select "Randomize execution order"
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
Run the following command in the same directory as your project to run your 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
You can add -destination 'platform=iOS Simulator,OS=11.2,name=iPhone 8'
for a different destination for as many different destinations as you would like.
For a list of simulator names and OSs that are available, run the command:
instruments -s devices
Bear in mind that if you are running tests in the simulator, you will not see the simulators on your screen when running tests through the command line.
add a comment |
up vote
2
down vote
Run the following command in the same directory as your project to run your 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
You can add -destination 'platform=iOS Simulator,OS=11.2,name=iPhone 8'
for a different destination for as many different destinations as you would like.
For a list of simulator names and OSs that are available, run the command:
instruments -s devices
Bear in mind that if you are running tests in the simulator, you will not see the simulators on your screen when running tests through the command line.
add a comment |
up vote
2
down vote
up vote
2
down vote
Run the following command in the same directory as your project to run your 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
You can add -destination 'platform=iOS Simulator,OS=11.2,name=iPhone 8'
for a different destination for as many different destinations as you would like.
For a list of simulator names and OSs that are available, run the command:
instruments -s devices
Bear in mind that if you are running tests in the simulator, you will not see the simulators on your screen when running tests through the command line.
Run the following command in the same directory as your project to run your 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
You can add -destination 'platform=iOS Simulator,OS=11.2,name=iPhone 8'
for a different destination for as many different destinations as you would like.
For a list of simulator names and OSs that are available, run the command:
instruments -s devices
Bear in mind that if you are running tests in the simulator, you will not see the simulators on your screen when running tests through the command line.
answered Dec 13 '17 at 10:39
Oletha
3,83711126
3,83711126
add a comment |
add a comment |
up vote
0
down vote
- Select your target scheme in Xcode, and "Edit Scheme..."
- Find the settings for "Test", and press on the "Info" tab
- You'll see a list of your Unit and UI tests, press on the associated
"Options..." button - Select "Execute in parallel on Simulator"
- Optionally select "Randomize execution order"
add a comment |
up vote
0
down vote
- Select your target scheme in Xcode, and "Edit Scheme..."
- Find the settings for "Test", and press on the "Info" tab
- You'll see a list of your Unit and UI tests, press on the associated
"Options..." button - Select "Execute in parallel on Simulator"
- Optionally select "Randomize execution order"
add a comment |
up vote
0
down vote
up vote
0
down vote
- Select your target scheme in Xcode, and "Edit Scheme..."
- Find the settings for "Test", and press on the "Info" tab
- You'll see a list of your Unit and UI tests, press on the associated
"Options..." button - Select "Execute in parallel on Simulator"
- Optionally select "Randomize execution order"
- Select your target scheme in Xcode, and "Edit Scheme..."
- Find the settings for "Test", and press on the "Info" tab
- You'll see a list of your Unit and UI tests, press on the associated
"Options..." button - Select "Execute in parallel on Simulator"
- Optionally select "Randomize execution order"
answered Nov 11 at 6:49
Mojtaba Hosseini
2,417523
2,417523
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f47755560%2fcan-i-run-several-ios-ui-tests-in-parallel%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Have you checked github.com/linkedin/bluepill ?
– Titouan de Bailleul
Dec 12 '17 at 14:56
I was able to this by following this guide: medium.com/@t.camin/parallelizing-ui-tests-28c16000f141.
– CF256
Dec 12 '17 at 15:11