Obsolete
Status Update
Comments
bo...@gmail.com <bo...@gmail.com> #2
Do you have a repro project that you could share with us?
There should be no need to excluding any dependencies: we automatically remove them from the test APK if they are in the main APK.
There should be no need to excluding any dependencies: we automatically remove them from the test APK if they are in the main APK.
uc...@google.com <uc...@google.com> #3
Thank you for this feedback. The team may reach out for more information on triaging or reproducing this issue.
Description
Version of Gradle Plugin: 2.3.1
Version of Gradle: 3.3
Version of Java: 1.8.0_112
OS: Mac OS Sierra 10.12.4 x86_64
Steps to Reproduce:
1. Create android project
2. Create Activity and Instrumentation testcase
3. Create custom testrunner class extending AndrodiJUnitRunner
4. Add runner as testrunner in apps build.gradle config
5. Run instrumentationtestcase
Expected: The testcase is run with custom testrunner
Actual: Run window is showing 'No test were found' and logwindow is showing that tests where run with default Androidtestrunner
Logoutput:
Testing started at 17.07 ...
05/03 17:07:23: Launching LoginActivityTest
$ adb push /Users/thomasschmidt/Documents/AndroidStudioProjects/smartgfr/app/build/outputs/apk/app-debug.apk /data/local/tmp/com.conhea.smartgfr
$ adb shell pm install -r "/data/local/tmp/com.conhea.smartgfr"
pkg: /data/local/tmp/com.conhea.smartgfr
Success
No apk changes detected since last installation, skipping installation of /Users/thomasschmidt/Documents/AndroidStudioProjects/smartgfr/app/build/outputs/apk/app-debug-androidTest.apk
$ adb shell am force-stop com.conhea.smartgfr.test
Running tests
$ adb shell am instrument -w -r -e debug false -e class com.conhea.smartgfr.login.LoginActivityTest com.conhea.smartgfr.test/android.support.test.runner.AndroidJUnitRunner
Client not ready yet..
Started running tests
Test running failed: Unable to find instrumentation info for: ComponentInfo{com.conhea.smartgfr.test/android.support.test.runner.AndroidJUnitRunner}
Empty test suite.