pxctest icon indicating copy to clipboard operation
pxctest copied to clipboard

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

Open okan-erdogan opened this issue 9 years ago • 4 comments

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

okan-erdogan avatar Dec 14 '16 13:12 okan-erdogan

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 ...

plu avatar Dec 15 '16 02:12 plu

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?

okan-erdogan avatar Dec 15 '16 13:12 okan-erdogan

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

plu avatar Dec 15 '16 14:12 plu

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

kullencatsikas avatar Dec 25 '16 05:12 kullencatsikas