You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A very common use case for the android-emulator-runner is to run Android tests using Espresso. Per default, Espresso creates a dump of the view hierarchy and a screenshot when a test fails. These files are very helpful when debugging failed tests.
However, getting them from the emulator was somewhat tricky: Since the script execution of a script is stopped on an error (and a failed test is an error), the files cannot be pulled easily. If the failed test error is suppressed, the action will run as passed and not show the failed test immediately. It would be possible to save the snapshot of the AVD and start it again in a second step, but this does not seem to be very efficient.
I came up with this solution, but I do not like it a lot:
Is there an easier way to do it? If not, I would like to have either the possibility to use a tear-down script that can be run before the emulator is shut down or be able to indicate a list of folders/files to be pulled from the AVD after executing the script.
The text was updated successfully, but these errors were encountered:
A very common use case for the android-emulator-runner is to run Android tests using Espresso. Per default, Espresso creates a dump of the view hierarchy and a screenshot when a test fails. These files are very helpful when debugging failed tests.
However, getting them from the emulator was somewhat tricky: Since the script execution of a script is stopped on an error (and a failed test is an error), the files cannot be pulled easily. If the failed test error is suppressed, the action will run as passed and not show the failed test immediately. It would be possible to save the snapshot of the AVD and start it again in a second step, but this does not seem to be very efficient.
I came up with this solution, but I do not like it a lot:
Is there an easier way to do it? If not, I would like to have either the possibility to use a tear-down script that can be run before the emulator is shut down or be able to indicate a list of folders/files to be pulled from the AVD after executing the script.
The text was updated successfully, but these errors were encountered: