Run Espresso Tests After Proguard
I am searching a way to run my espresso-tests after proguard was running - This should be a safety-net for a miss-configured proguard ( just had this after updating butterknife to
Solution 1:
Assuming that you are proguarding your APK using the standard mechanisms built into the Android Gradle build system (setting 'minifyEnabled true' for a particular buildType), you can test your 'proguarded' APK by setting the testBuildType as described here and running your connectedAndroidTest task as normal.
For instance, if your 'release' buildType was the one configured to have proguard run against it, you would add the following to your gradle file:
android {
testBuildType "release"
}
Post a Comment for "Run Espresso Tests After Proguard"