如何使目标"package"依赖于目标"test" ?
这里有一个解决方案:强制sbt 0.11运行测试但是它不能与xsbt-web-plugin一起工作。
我是这样做的:
Keys.`package` <<= (test in Test, Keys.`package` in Compile) map { (_, in) =>
println("after package & test")
in
}
运行测试,如果测试成功,则运行包任务。(在新安装的lift-2.5-RC2上测试)