title: How to add testCompile dependencies to IDE classpath
body: <p>I have been struggling with unit-test-android problem for quite a long time. I have seen <a href="https://stackoverflow.com/a/17845564/878514">this</a>, <a href="http://www.element84.com/easy-testing-with-android-studio.html" rel="nofollow noreferrer">this</a> and <a href="http://tryge.com/2013/02/28/android-gradle-build/" rel="nofollow noreferrer">that</a>, finally I found the <a href="https://github.com/JakeWharton/gradle-android-test-plugin" rel="nofollow noreferrer">gradle-android-test-plugin</a> and even got it working. I can now run the tests with <code>gradlew test</code> command.</p>
  
  <p>But, writing those tests in IDE (Android Studio or IntelliJ 13) is far from comfortable, because it does not see the junit &amp; Robolectric dependencies added with <code>testCompile</code> dependency.</p>
  
  <p>Is there any way to add these dependencies to the IDE classpath but still avoid to package them in the production app (thus, AFAIU <code>compile</code> dependency cannot be used)?</p>