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

how to run different test targets in same version of simulators parallel #9

Open
okanerdogan09 opened this issue Dec 14, 2016 · 4 comments

Comments

@okanerdogan09
Copy link

okanerdogan09 commented Dec 14, 2016

Hi
I want to run my test targets parallel in same version of simulators.Is that possible?
to be more clear what I want to do is
targetA -----ios 6 version 10.1
targetB------ios 6 version 10.1

@plu
Copy link
Owner

plu commented Dec 15, 2016

It's not possible to do this in a single invocation of pxctest run-tests. What you could do is boot two simulators in a different device set path, and then run in parallel:

pxctest run-tests --deviceset /tmp/targetA --only targetA ...
pxctest run-tests --deviceset /tmp/targetB --only targetB ...

@okanerdogan09
Copy link
Author

when i run this command
pxctest boot-simulators \ --deviceset /tmp/test-simulators \ --destination 'name=iPhone 5,os=iOS 9.3' \ --destination 'name=iPad Retina,os=iOS 9.3'
i get Unknown command: boot-simulators`` do i miss something?

@plu
Copy link
Owner

plu commented Dec 15, 2016

The boot-simulators command is not released yet. This means you'd need to install via brew install pxctest --HEAD.

@kullencatsikas
Copy link

kullencatsikas commented Dec 25, 2016

hi @okanerdogan84 ! I have a working python script and json file to accomplish what you are looking for, using "-only" and spawning multiple processes to divvy tests up among multiple, headless simulators, see below, let me know if you have any questions!

https://github.com/apkatsikas/xctest_pxctest_distributed

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

3 participants