Running espresso tests after proguard

I am looking for a way to run my espresso tests after running proguard. It should be a safety net for a profile with skipped requests (only after that I updated butterknife to 7.0 and forgot to update proguard config)

+3


source to share


1 answer


Assuming you are running the APK using the standard mechanisms built into the Android Gradle build system (setting "minifyEnabled true" for a specific buildType) you can test your "proguarded" APK by setting testBuildType as described here and run your connectedAndroidTest task as usually.

For example, if your 'release' buildType was set to walk against it, you added the following to your Gradle file:



android {
    testBuildType "release"
}

      

+4


source







All Articles