task scalaTest(dependsOn: testClasses) << {
description = \'Runs Scalatest suite\'
ant.taskdef(name: \'scalatest\',
classname: \'org.scalatest.
rarry is correct. And even better, you can annotate a base test class with @RunWith(classOf[JUnitRunner])
once to cause all of your ScalaTest tests to run with the JUnit runner (assuming they extend the base class), e.g.:
import org.junit.runner.RunWith
import org.scalatest._
import org.scalatest.junit.JUnitRunner
@RunWith(classOf[JUnitRunner])
abstract class UnitSpec extends FlatSpec with Matchers