I recently discovered the property testOptions.animationsDisabled in the Android Gradle plugin.
I was hoping it would be helpful to disable the animations on my devices when executing UI tests with Espresso, but it's not, i.e. I still have to disable the animations manually or using one of several options available. Otherwise some UI tests become flaky.
Since the description of this property is rather short, does anyone know how it's meant to be used?
My gradle file is as follows:
apply plugin: 'com.android.application'
android {
testOptions {
animationsDisabled = true
}
}
Thanks.