37
votes

I have an SBT 0.7.5 project and its some test cases fail. Until all test cases are fixed, I want to skip tests to generate a JAR. Is there any command line argument that tells SBT to skip all tests, like Maven's -Dmaven.test.skip=true flag?

2

2 Answers

9
votes

Instead of using compile, you could use package. The compile tasks also runs the tests, package doesn't.

113
votes

I had the same problem, I'm using the assembly plugin. In this case, the solution was to modify the build file and add

test in assembly := {}