In case there's no devices attached and no emulators running, trying <cli name> devices <platform> --available-devices will start emulator.
In order to fix this, modify the startEmulatorIfNecessary method to skip the starting in case skipInferPlatform option is passed. This option indicates that we are not concerned of specific platform, so the method does not know which is the target platform for which to start emulator.
Add unit test for this behavior.
In case there's no devices attached and no emulators running, trying
<cli name> devices <platform> --available-devices
will start emulator. In order to fix this, modify thestartEmulatorIfNecessary
method to skip the starting in caseskipInferPlatform
option is passed. This option indicates that we are not concerned of specific platform, so the method does not know which is the target platform for which to start emulator. Add unit test for this behavior.