yorkw
unread,Sep 7, 2011, 7:06:02 PM9/7/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Robolectric
Thanks, Chris, I've figured it out.
The problem is that I am adding src/test/java as a source folder into
my existing project directly in Eclipse IDE, at this point, I guess
the ADT plugin (or something sort of) auto configure the settings to
match this to the Android default output directory (target/android-
classes), which is not the directory JUnit is looking for (target/test-
classes).
The workaround is delete the project from eclipse, clean project
folder (.settings, .classpath, .project) then import it as maven
project again. and this point, m2Eclipse plugin is dominant the
project setup, and automatically correct src/test/java point to the
right one target/test-classes.
Somehow mvn clean does not delete all IDE generated directory/files in
a multiple module maven project, of course you can configure maven-
clean-plugin in your pom to delete them properly.