https://kotlinlang.org logo
#android
Title
# android
a

Abhishek Bansal

11/06/2019, 12:02 PM
Hey Guys, I am trying to write
Espresso
unit tests on Android. Does this gradle flag even work?
Copy code
testOptions {
        animationsDisabled = true
    }
d

Daniel Rodak

11/06/2019, 12:26 PM
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

yousefa2

12/03/2019, 3:45 PM
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

Abhishek Bansal

12/03/2019, 4:05 PM
yeah that’s what we ended up doing 🙂