android - Why does a new Gradle build start whenever I run Espresso tests? -
whenever attempt run espresso test android studio (typically right-clicking on test/class/package , selecting 'run tests'), android studio kicks off new build , installs new apk when no changes made. naturally, makes debugging failing ui tests time consuming procedure. has encountered problem , fixed it?
android instrumented unit test should put test java files in app/src/androidtest/java/your.package.name directory, not test folder https://developer.android.com/training/testing/unit-testing/instrumented-unit-tests.html