AzimoLabs / fastlane-plugin-automated-test-emulator-run

Plugin dedicated for Android platform. Wraps gradle task/shell command used for launching instrumented tests. Provides start of as many AVDs with various configs as needed before test run, waits for boot, kills emulators and deletes them from hdd after tests are finished or disturbed.
MIT License
112 stars 48 forks source link

create_avd_device does not appear to work as described #13

Closed dantman closed 7 years ago

dantman commented 7 years ago

When I try using create_avd_device as a label I get this error:

[!] Exit status of command 'echo "no" | ~/Library/Android/sdk/tools/bin/avdmanager create avd --name "Test-Phone" --package "system-images;android-25;google_apis;x86" --device "Ephemeral Test Phone" --tag google_apis --abi x86 ' was 1 instead of 0. (FastlaneCore::Interface::FastlaneShellError)
Error: No device found matching --device Ephemeral Test Phone.

Presumably the --device arg doesn't work the same in avdmanager as it did in the old android avd tool.

rohanmartin commented 7 years ago

Have you checked the device ID exists? --device takes the device id which you can get from avdmanager list device. It's the value listed next to id:, not Name:

id: 18 or "pixel_c" Name: Pixel C OEM : Google

Would be "pixel_c" not "Pixel C"

FisherKK commented 7 years ago

Hi @dantman!

Sorry for late response.

Yeah that's avdmanager related error. It's not plugin fault. Try @rohanmartin solution. I was about to answer the same when I saw your question.

dantman commented 7 years ago

I know what --device does in the current avdmanager, my problem is the documentation.

This is what README.md says:

create_avd_device - optional label for device e.g. "For plugin tests only. Do not touch."

FisherKK commented 7 years ago

Whoops! I am sorry then - it's problem on our side.

Thanks for pointing that. I have updated README.md.