plu / pxctest

Execute tests in parallel on multiple iOS Simulators
MIT License
800 stars 57 forks source link

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

Open okanerdogan09 opened 7 years ago

okanerdogan09 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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

kullencatsikas commented 7 years ago

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