1

We are already having sources under src/main/java and gradle build that is occasionally launched from Eclipse and every few minutes after commits on CI server. Gradle for Eclipse helps a bit.

Android gradle plugin 1.1.0-rc1 (2015/02/02) comes with "special version of android.jar that is compatible with popular mocking frameworks (e.g. Mockito)".

I wonder if it is possible to squeeze JUnit testing for Android within Eclipse to make those who sticks to Eclipse to actually start using unit tests more.

How to run Android unit test in Eclipse?

I know that for Android project any Java class with main can be launched in Eclipse if the Android Lib is removed. I guessed now similar finer configuration is needed with this "special version of android.jar"

UPDATE:

Not to be confused with Android test projects: Q

So far I created new Java project and referenced Android project.
I can use and test Java classes from it and it dependencies including support library, but not any classes from Android framework (coming from android.jar)

Community
  • 1
  • 1
Paul Verest
  • 60,022
  • 51
  • 208
  • 332

0 Answers0