I recently re-installed my OS from scratch (Debian). Then did following:
Here, I noticed that I don't have "Run as -> Scala test" in the menu. Looked at the versions and noticed that I have installed a Scala IDE which is made for Scala 2.10, but I have 2.10 installed. The Eclipse version 3.8 was correct.
So I uninstalled the repository scala, downloaded 2.10.4 and installed it manually, setting both $SCALA_HOME and $PATH. I restarted the computer in case Eclipse has loaded some dependencies to the old scala, and tried running the test again. But to no avail; I have the choice to run a scala application, but not a scala test.
My mini-test is extremely simple and doesn't reference anything unusual:
import org.scalatest._
import Matchers._
class StudySpec extends FlatSpec {
"It" should "be possible to create a new Study with the default constructor." in {
val newStudy = new Study()
}
What did I do wrong, and how can I get the test to run?
Seems you haven't Install the ScalaTest plugin for Scala IDE
. Just install it.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.