强制sbt 0.11运行测试

时间:2012-02-14 12:39:24

标签: sbt

除非所有测试都通过,否则在执行sbtpackage时如何强制publish 0.11失败?

1 个答案:

答案 0 :(得分:3)

build.sbt中,添加:

publish <<= publish dependsOn (test in Test)

(或package的等价物)