Has anybody managed to disable animations through code when running Espresso tests? I\'ve been trying to follow the instructions in this webpage (linked to from he
I'm executing these three commands for each animation type and they are working for me:
adb shell settings put global window_animation_scale 0.0
adb shell settings put global transition_animation_scale 0.0
adb shell settings put global animator_duration_scale 0.0
More information here - prepare android emulator for UI test automation.