Eclipse JUnit runner cannot find ScalaTest methods on double click

I take the Martin Oder Kurser class, and assignments use ScalaTest. It is very annoying that Eclipse cannot find the testing methods by double-clicking or right-clicking "Go to File" in the JUnit runner.

Double-clicking "Method xxx" was not found. Opening a test class. a dialog box appears.

Is there a configuration problem or is it a ScalaTest bug / limitation?

Here is a ScalaTest sample from the class:

package recfun

import org.scalatest.FunSuite

import org.junit.runner.RunWith
import org.scalatest.junit.JUnitRunner

@RunWith(classOf[JUnitRunner])
class CountChangeSuite extends FunSuite {
  import Main.countChange
  test("manual") {
    assert(countChange(4,List(1,2)) === 3)
  }
}
+5
source share
3 answers

ScalaTest Eclipse ScalaTest 1.8. , . , , ScalaTest 2.0. , 1.8.

, JUnit, - , ScalaTest. JUnit - , , @RunWith. ScalaTest JUnit. IDE @RunWith, . JUnit. , IDE , JUnit ( ScalaTest). JUnit - IDE , .

ScalaTest, , ScalaTest IDE. "Finder", IDE ScalaTest. ( , JUnit, ScalaTest.) Finders, IDE ( 10 ):

http://skillsmatter.com/podcast/scala/scalatest-scalamock-subcut

+2

, JUnit Eclipse. ( ).

, Junit Eclipse , , java- JUnit, ScalaTest, .

Scalatest plugin Eclipse, .

+3

This works for me:

1- Open the console in the project folder and execute "sbt".

2- (without exiting "sbt") run the command "eclipse".

enter image description here

0
source

All Articles