2015-10-21 93 views

回答

1

你可以使用maven surefire插件运行你的scalatests。您只需指定通过注释使用JUnitRunner即可运行您的scalatest。

@RunWith(classOf[JUnitRunner]) 
class MyTest extends FunSuite with Matchers { 
    test("foobar") { 
    true should be(true) 
    } 
} 
+0

你知道如何配置scalatest在这种情况下运行?例如确保有记者或配置标签? –