- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Eclipse 3.6 classic: i can't create Junit tests for scala
Sun, 2010-08-15, 18:23
Although i did as http://www.scala-lang.org/node/363 describes, any JUnit test created in a scala project has the suffix ".java" and works with java code only. I.e:
import org.junit._ //didn't work, marked as error
import org.junit.* //works
import org.junit._ //didn't work, marked as error
import org.junit.* //works
It is a clean installation made by downloading and unpacking eclipse-SDK-3.6-linux-gtk.tar.gz,
installing plug-ins for scala (http://download.scala-ide.org/nightly-update-helios-2.8.0.final today at 18:00 / 19:00 hour) and Subclipse.
On Sun, Aug 15, 2010 at 6:23 PM, Michael Gross wrote:
>
> Although i did as http://www.scala-lang.org/node/363 describes, any JUnit test created in a scala project has the suffix ".java" and works with java code only. I.e:
That page is out of date ... it should be redirecting to
http://scala-ide.assembla.com/wiki/show/scala-ide/Using_Unit_Testing_Fra...,
but it must have been overlooked.
> import org.junit._ //didn't work, marked as error
> import org.junit.* //works
>
> It is a clean installation made by downloading and unpacking eclipse-SDK-3.6-linux-gtk.tar.gz,
> installing plug-ins for scala
> (http://download.scala-ide.org/nightly-update-helios-2.8.0.final today at 18:00 / 19:00 hour) and Subclipse.
The best place for questions like this is the Scala IDE users list,
http://groups.google.com/group/scala-ide-user
Cheers,
Miles
--
Miles Sabin
tel: +44 7813 944 528
gtalk: miles@milessabin.com
skype: milessabin
http://www.chuusai.com/
http://twitter.com/milessabin