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)
}
}
source
share