The new Android machine image (currently in preview status) has support for running emulators. This PR adds new commands and a job to support running UI tests.
Additions
New commands:
create-avd for creating an AVD
disable-animations to disable emulator animations
kill-emulators command to kill emulator processes
restore-gradle-cache and save-gradle-cache
run-tests to run tests, with retries supported
start-emulator to start an emulator from an existing AVD
wait-for-emulator to wait for an emulator to start up
start-emulator-and-run-tests: a command that wraps create-avd, start-emulator and run-tests
New job: run-ui-tests that wraps the start-emulator-and-run-tests command
New executor: android-machine
New examples
Modifications to existing commands
Updated description of accept-licenses and install-ndk commands
Added cache-prefix parameter to restore-build-cache and save-build-cache commands so that the cache prefix can be customized if needed. Since it defaults to v1, the commands should still work the way they did before, by default.
The new Android machine image (currently in preview status) has support for running emulators. This PR adds new commands and a job to support running UI tests.
Additions
create-avd
for creating an AVDdisable-animations
to disable emulator animationskill-emulators
command to kill emulator processesrestore-gradle-cache
andsave-gradle-cache
run-tests
to run tests, with retries supportedstart-emulator
to start an emulator from an existing AVDwait-for-emulator
to wait for an emulator to start upstart-emulator-and-run-tests
: a command that wrapscreate-avd
,start-emulator
andrun-tests
run-ui-tests
that wraps thestart-emulator-and-run-tests
commandandroid-machine
Modifications to existing commands
accept-licenses
andinstall-ndk
commandscache-prefix
parameter torestore-build-cache
andsave-build-cache
commands so that the cache prefix can be customized if needed. Since it defaults tov1
, the commands should still work the way they did before, by default.