jxs1211 / android-test-kit

Automatically exported from code.google.com/p/android-test-kit
0 stars 0 forks source link

instrumentTestCompile dependency doesn't work #30

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. build.gradle

dependencies {
    compile ... // compile dependencies

    instrumentTestCompile 'com.google.android.apps.common.testing:espresso:1.0-SNAPSHOT'
    instrumentTestCompile 'com.google.android.apps.common.testing:testrunner:1.0-SNAPSHOT'
    instrumentTestCompile 'com.google.android.apps.common.testing:testrunner-runtime:1.0-SNAPSHOT'
    instrumentTestCompile 'org.hamcrest:hamcrest-core:1.1'
    instrumentTestCompile 'org.hamcrest:hamcrest-library:1.1'
    instrumentTestCompile 'org.hamcrest:hamcrest-integration:1.1'
    instrumentTestCompile 'com.squareup.dagger:dagger:+'
    instrumentTestCompile 'com.squareup.dagger:dagger-compiler:+'
}

2.
                        I  Could not find method com.google.android.apps.common.testing.testrunner.ExposedInstrumentationApi.execStartActivity, referenced from method com.google.android.apps.common.testing.testrunner.GoogleInstrumentation.
                           execStartActivity
                        W  VFY: unable to resolve virtual method 222: Lcom/google/android/apps/common/testing/testrunner/ExposedInstrumentationApi;.execStartActivity (Landroid/content/Context;Landroid/os/IBinder;Landroid/os/IBinder;Landroi
                           d/app/Activity;Landroid/content/Intent;I)Landroid/app/Instrumentation$ActivityResult;

What is the expected output? What do you see instead?
I have the libs in local maven repo, but they are not bundled with apk.

What version of the product are you using? On what operating system?
1.0-SNAPSHOT

Please provide any additional information below.
I have to replace "instrumentTestCompile" with "compile", otherwise the classes 
are not bundled into apk.

Original issue reported on code.google.com by TomR...@gmail.com on 3 Dec 2013 at 12:31

GoogleCodeExporter commented 9 years ago
Take a look at the new deployment instructions for gradle here: 
https://code.google.com/p/android-test-kit/wiki/Espresso#Espresso_Setup_Instruct
ions

Original comment by vale...@google.com on 9 Jan 2014 at 7:27