It depends on the version of the Android plugin IntelliJ has. This was
a recent change and it is possible that IntelliJ hasn't picked it up.

I suspect that you can tell whether IntelliJ will support it by
checking if the following file exists:
plugins/android/lib/builder-model-0.9.0.jar. If it is older, then it
is probably using an earlier version.

On Thu, Mar 20, 2014 at 12:21 AM, Anders Aagaard <[email protected]> wrote:
> Hi
>
> Thank you very much! After spending a lot of time with gradle (which is
> quickly growing on me!) getting stuck on IDE stuff afterwards wasn't much
> fun, but it works now!
>
> Still wondering why intellij doesn't work with androidTest in 0.9, but works
> fine in androidstudio though, but that isn't critical to our migration.
>
>
> On Wednesday, March 19, 2014 7:55:31 PM UTC+1, Streets Of Boston wrote:
>>
>> 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.

-- 
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.

Reply via email to