Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to run robospock test for Intellij gradle projects? #9

Open
ioannisth opened this issue May 4, 2014 · 2 comments
Open

How to run robospock test for Intellij gradle projects? #9

ioannisth opened this issue May 4, 2014 · 2 comments

Comments

@ioannisth
Copy link

Hello, I am trying to my robospock tests for my Adroid app on intellij idea 13.1. Android project is gradle based. I have created a new groovy module for my android gradle project, used the sample build.gradle as shown in robospock.org but I keep getting a message that android support v4 lib cannot be resolved. I manually copied the jar in a lib folder on my test subproject and added the appropriate compile dependencies. However, now I cannot run the tests because they are shown as Junit... Can you please give me a short step by step guide on what to do in order to use the plugin?

P.S. also, if that helps, on project setup, after each gradle sync, content roots are being automatically added for the test project which point to main android project dirs and cause an error. I have to manually remove them each time...

@pjakubczyk
Copy link
Owner

Ad. the PS. yes I'm having the same problem and for now I don't have any idea how to trick IntelliJ.

Going back to the main issue. I think IntelliJ in Java/Groovy plugins don't see the local Google repository ( $ANDROID_HOME/extras/android/m2repository ). I'll check in my project anyway.

Moreover IntelliJ has problems with understanding aar dependencies in Java/Groovy plugins.

Thanks for running my plugin :)

@bluesliverx
Copy link

I think the info and associated pull request for Centril/gradle-plugin-robospock#10 would help you out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants