我有一个这样简单的测试:
"xxx" should {
"xxx" in running(FakeApplication()) {
route(
FakeRequest(GET, "/xxx/xxxx")
) must beLike {
case Some(result) => {
"" must_== ""
}
}
测试总是在测试结束时结冰:
...
[info] Total for test controllers.XxxTest
[info] Finished in 0.001 seconds
[info] 1 tests, 0 failures, 0 errors
所以我退出了测试Ctrl+C..。
有什么想法吗?
JVM 1.7.0_11
Scala 2.10.0
播放2.1-RC2
Mac 10.8.2
发布于 2013-01-17 06:32:45
它们似乎重新启用了测试分叉(请参阅https://github.com/playframework/Play20/pull/654)。因此,您需要简单地将sbt升级到0.12.2-RC2。
sbt.version=0.12.2-RC2
进入你的build.properties
。
发布于 2013-01-16 18:42:57
临时措施
在Build.scala (或Build.sbt)中添加以下代码段:
sbt.Keys.fork in Test := false
https://stackoverflow.com/questions/14349487
复制相似问题