Link Details

Examples of how to set up a test project for Android from IntelliJ IDEA.

Posted by HamletDRC  |   Jan 12 2012 / 10:14

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Comments

User 237583 avatar

peathal replied ago:

Is it really that simple? Did somebody try? The last time I tried it didn't properly work with executing single tests ...

Reply 0 votes
User 258218 avatar

HamletDRC replied ago:

I have an Android IDEA project and yes this stuff works for me on 11. It is important to upgrade to 11 because of all the new fixes in it for Android.

Reply 1 votes
User 237583 avatar

peathal replied ago:

@HamletDRC thanks! Will it work with the community version? And do I need to open two instances of IDEA (as I have an android and a test project)?

Reply 0 votes
User 258218 avatar

HamletDRC replied ago:

It is all in the community version. And you only need one instance of IDEA and once instance of the emulator.

Reply 0 votes
User 237583 avatar

peathal replied ago:

Thanks, important, executing and debugging the project works nicely. But I cannot execute the tests. This is my blocker :(

http://youtrack.jetbrains.net/issue/IDEA-6814

Reply 0 votes
User 258218 avatar

HamletDRC replied ago:

I left a comment on that bug. If you have two separate modules then this shouldn't be an issue. But I describe how to fix it in the YouTrack comment.

Reply 0 votes

Recommended Links

Scala
Written by: Ryan Knight
Featured Refcardz: Top Refcardz:
  1. Apache Hadoop
  2. Play
  3. Akka
  4. Debugging JavaScript
  5. Design Patterns
  1. Apache Hadoop
  2. REST
  3. Java
  4. Git
  5. Java Performance
Connect with DZone