1

如何使目标“包”依赖于目标“测试”?

这里有一个解决方案:Force sbt 0.11 to run tests 但它并不真正适用于 xsbt-web-plugin。

4

1 回答 1

3

这是我所做的:

Keys.`package` <<= (test in Test, Keys.`package` in Compile) map { (_, in) =>
  println("after package & test")
  in
}

它运行测试,如果测试成功,则运行包任务。(在全新安装的 lift-2.5-RC2 上测试)

于 2013-03-21T13:29:49.837 回答