Skip to content
This repository has been archived by the owner on Jan 17, 2019. It is now read-only.

Run different tests on different simulators in parallel #19

Open
nabsofken opened this issue Feb 9, 2017 · 10 comments
Open

Run different tests on different simulators in parallel #19

nabsofken opened this issue Feb 9, 2017 · 10 comments

Comments

@nabsofken
Copy link

So I can run the same tests in parallel in different simulators but is it possible to run different tests at the same time?

@plu
Copy link
Owner

plu commented Feb 9, 2017

Do you mean splitting a test target of 100 tests into two parts and then run them at the same time in two different Simulators?

@nabsofken
Copy link
Author

yes

@plu
Copy link
Owner

plu commented Feb 9, 2017

You can try the --partitions 2 option, but it's still experimental! You also need to install the current master.

@nabsofken
Copy link
Author

oh cool thanks I will try that

@amesandy-zz
Copy link

did that work for you?

@JuliaGrasevych
Copy link

JuliaGrasevych commented Apr 5, 2017

As I understand, --partitions 2 will run separate test targets in parallel.
What about splitting 1 target into couple parts and run these in parallel?

P.S.: When I use
xctest run-tests --destination 'name=iPhone 6,os=iOS 10.2' --destination 'name=iPhone 5s,os=iOS 10.2' --testrun build/Products/TestUI_iphonesimulator10.2-x86_64.xctestrun --partitions 2
it gives me an error:
nilError
I have 2 UI test targets in project.

@RichardGuion
Copy link

I have the same error as Julia.

@maryamaffinityclick
Copy link

I am looking for the same scenario, running different test classes on different simulators. I think we can do it by

[-only-testing:]
[-skip-testing:]

I didn't try yet, but I will update if I succeed on that :) and let me know if anyone has done that before.

@benmarten
Copy link

Did anyone get it working in this fashion? Sharding multiple tests from same target/scheme to multiple emulators?

@maryamaffinityclick
Copy link

@benmarten Yeah I achieved something you can read what I have done -> https://medium.com/@Maryamfekri/how-to-run-uitest-for-messaging-features-in-an-ios-application-777de0440b99
with passing some environment variable and running two test cases in parallel with only-testing !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants