JUnit in mixed Scala\Java project

30 views
Skip to first unread message

cessationoftime

unread,
Sep 4, 2011, 7:59:46 PM9/4/11
to Scala IDE User
I am having trouble with Eclipse being inconsistent in running JUnit
tests. I am working in a scala\java project Usually it runs JUST my
scala tests, when it should run both my java and scala tests. If i
restart eclipse both java and scala tests all run, but only once, then
it is back to running scala tests only. Sometimes it doesn't find any
tests at all. I really dont have a clue what could be happening.

I am running in a pretty complex environment though since I am using
Maven, Scala-Ide and programing for the Android phone.

Scala IDE for Eclipse 2.0.0.beta09-29-201107201639-529111d org.scala-
ide.sdt.feature.feature.group

Android Development Tools 12.0.0.v201106281929-138431
com.android.ide.eclipse.adt.feature.group

Maven Integration for Eclipse (Required) 0.12.1.20110112-1712
org.maven.ide.eclipse.feature.feature.group
Maven Integration for Android Development Tools 0.2.5
com.googlecode.eclipse.m2e.android.feature.feature.group
Maven Integration for Scala IDE 0.3.1
org.maven.ide.eclipse.scala_feature.feature.group


Any Ideas? Anyone with similar issues?
Chris

David Bernard

unread,
Sep 7, 2011, 3:12:38 PM9/7/11
to scala-i...@googlegroups.com
No idea,
But a suggestion, you should upgrade your version of m2e from 0.12 to 1.0+ m2e-scala 0.3.1 is made to work with this version of m2e.
How to do run test  ?
* run test on a directory/package
* run test via maven menu

when it doesn't run java test, can you check if the .class of the java test exist under target/test-classes or target/classes
same question but when java test run.

/davidB
Reply all
Reply to author
Forward
0 new messages