def start_emulators
      emulators = `emulator -list-avds`.split("\n")
      emulators = emulators[0, ENV['THREADS'].to_i]
      Parallel.map(emulators, in_threads: emulators.size) do |emulator|
        spawn("emulator -avd #{emulator} -no-snapshot-load -scale 100dpi -no-boot-anim -no-audio -accel on &", out: '/dev/null')
      end

      emulators
    end
def start_emulators
      emulators = `emulator -list-avds`.split("\n")
      emulators = emulators[0, ENV['THREADS'].to_i]
      Parallel.map(emulators, in_threads: emulators.size) do |emulator|
        spawn("emulator -avd #{emulator} -no-snapshot-load -scale 100dpi -no-boot-anim -no-audio -accel on &", out: '/dev/null')
      end

      emulators
    end
Fire up the Android emulators