Copy Data from an Android Emulator that is run by Gradle Managed Devices

648 Views Asked by At

When running UITests on an Android Emulator that is managed using Gradle managed devices, how do I copy data like screenshots, cucumber reports etc.? I cannot use adb pull because the emulator is shutdown and reset instantly after each run.

1

There are 1 best solutions below

3
Lutzifer On BEST ANSWER

There is a little documented feature to do this:

Everything that you copy on the emulator to

/sdcard/Android/media/<Bundle Identifier>/additional_test_output

is copied to a per-managed-device subfolder in

app/build/outputs/managed_device_android_test_additional_output

after the test has been run.