trustin
trustin

Reputation: 12351

How can I skip tests in an SBT build?

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?

Upvotes: 37

Views: 28136

Answers (2)

myborobudur
myborobudur

Reputation: 4435

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

Upvotes: 9

OlliM
OlliM

Reputation: 7113

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 := {}

Upvotes: 114

Related Questions