lib/scan/runner.rb in scan-0.6.1 vs lib/scan/runner.rb in scan-0.7.0
- old
+ new
@@ -8,10 +8,15 @@
def run
handle_results(test_app)
end
def test_app
- open_simulator_for_device(Scan.device)
+ # We call this method, to be sure that all other simulators are killed
+ # And a correct one is freshly launched. Switching between multiple simulator
+ # in case the user specified multiple targets works with no issues
+ # This way it's okay to just call it for the first simulator we're using for
+ # the first test run
+ open_simulator_for_device(Scan.devices.first)
command = TestCommandGenerator.generate
prefix_hash = [
{
prefix: "Running Tests: ",