I'm trying to automate the disabling of animations as described in this post, but that only seems to work for command-line invocation of connectedAndroidTest
. I want to use the graphical test runner in Studio, with the list box showing passed/failed tests. With that runner, the permission grant (adb shell pm grant ... android.permission.SET_ANIMATION_SCALE
) is never run, seemingly because the gradle task installDebugAndroidTest
is never run, instead the runner is running Gradle as far as assembleDebugAndroidTest
(or whatever alternate gradle task I specify in my run configuration), and then installing com.mypackage.test
by some other (non-Gradle?) method immediately before running tests. So any prior permission grant is reset by that installation.
How can I grant SET_ANIMATION_SCALE
between the graphical test runner's installation of the test package and the running of the test?
Aucun commentaire:
Enregistrer un commentaire