Hey Guys, I am trying to write `Espresso` unit tes...
# android
a
Hey Guys, I am trying to write
Espresso
unit tests on Android. Does this gradle flag even work?
Copy code
testOptions {
        animationsDisabled = true
    }
d
Wasn't for me. I'm using library provided by the author of this article(you can find repo inside): https://proandroiddev.com/one-rule-to-disable-them-all-d387da440318
👍 1
y
You can also run adb commands to disable animations on the emulator
Copy code
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
That should disable animations system wide.
a
yeah that’s what we ended up doing 🙂