How can I force sbt
0.11 to fail when doing package
or publish
unless all the tests pass?
1 Answer
In build.sbt
, add:
publish <<= publish dependsOn (test in Test)
(or the equivalent for package
)
-
To make this work with xsbt-web-plugin one has to use a little more verbose solution: stackoverflow.com/questions/15547784/sbt-package-depend-on-test Commented Mar 21, 2013 at 13:49