android-test-demo icon indicating copy to clipboard operation
android-test-demo copied to clipboard

Custom AndroidJUnitRunner is not being called when tests are executed via Android Studio

Open akiwarheit opened this issue 7 years ago • 1 comments

First of all, thank you very much for the wonderful repo. This really helped me write Espresso for our existing app

My issue is around running the test - executing via the gradle wrapper runs the test correctly - but running it via studio executes the ff.

adb shell am instrument -w -r -e debug false -e class nz.co.blah.ui.MainActivityTest nz.co.blah.test/android.support.test.runner.AndroidJUnitRunner

Which is wrong because it should be executing my custom AndroidJUnitRunner. Do you happen to know how to edit this? I've made the instrumentation test gradle aware but it doesn't seem to call the appropriate runner.

akiwarheit avatar Mar 24 '17 02:03 akiwarheit

Should be tagged as question as well - not an issue

akiwarheit avatar Mar 24 '17 02:03 akiwarheit