Update your runtime's "Specific instrumentation runner" configuration for
your Android Test using this value:
*com.google.android.apps.common.testing.testrunner.GoogleInstrumentationTestRunner*
On Wednesday, March 19, 2014 7:57:49 AM UTC-4, Anders Aagaard wrote:
>
> Hi
>
> We've setup gradle + espresso, with the latest build tool. Everything
> works fine command line, when opening the project in android studio it
> marks "androidTest" as test source, and everything looks good. In intellij
> I can not for the life of me get it to mark androidTest as a source
> directory at all, however if I switch to build tool 0.8 and use
> instrumentationTest instead it does see it as java source.
>
> However, regardless of what I do, I can not get the tests to run from
> intellij. In either system, if I right click and run a unit test I get the
> error:
>
> Uploading file
> local path:
> /home/neuron/Documents/programming/finn/android_finn_app/finn_app/build/apk/FINN-app-debug-test-unaligned.apk
> remote path: /data/local/tmp/no.finn.android.dev.test
> Installing no.finn.android.dev.test
> DEVICE SHELL COMMAND: pm install -r
> "/data/local/tmp/no.finn.android.dev.test"
> pkg: /data/local/tmp/no.finn.android.dev.test
> Success
>
> Running tests
> Test running started
> Test running failed: Unable to find instrumentation info for:
> ComponentInfo{no.finn.android.dev.test/android.test.InstrumentationTestRunner}
> Empty test suite.
>
> Running gradle from commandline however works just fine. Are there any
> referance projects for setting up a gradle project, with testing in
> intellij/android studio working 100%? Or is this just not possible right
> now?
>
> Also I'm guessing the change in instrumentationTest -> androidTest broke
> something in intellij, and that this is getting a proper fix in intellij,
> not just android studio. Is there any issues to track or something like
> that to see what these fixes are? I don't really want to tell all the
> developers that they have to use both intellij (for some projects) and
> androidstudio (because of 0.9).
>
> Best regards
> Anders
>
--
You received this message because you are subscribed to the Google Groups
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.