October 22, 2024
Chicago 12, Melborne City, USA
Android

Run connectedAndroidTests without re-installing APK


I have several instrumentation tests that I want to run as part of a build pipeline. I’m assembling and installing the APK on the device in a previous step and don’t want it to run through that process for the module again when I run ./gradlew app:cAT, is there an easy way to do that?

I thought I could maybe used the -x flag

-x, --exclude-task                 Specify a task to be excluded from execution.

However running ./gradlew app:cAT -x assembleDebug doesn’t appear to work as expected.



You need to sign in to view this answers

Leave feedback about this

  • Quality
  • Price
  • Service

PROS

+
Add Field

CONS

+
Add Field
Choose Image
Choose Video