plu / pxctest

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

Add ShutdownSimulatorsCommand #25

Closed chrisdanford closed 7 years ago

chrisdanford commented 7 years ago

This adds a shutdown-simulators command to stop simulators that you've booted. This releases resources held by the simulators and lets you delete the deviceset directory (otherwise, the running simulators will keep writing files there and recreate it.

$ pxctest shutdown-simulators \
    --deviceset /tmp/test-simulators

Context: I'm wanting to run multiple sets of tests in parallel on a single host. Each test run has a unique directory for deviceset, and I need the simulators to shut down after every run or else a few test runs seems to exhaust system resources and my Mac beachballs until force rebooted.

plu commented 7 years ago

Looks good, thank you!