How to skip tests in SBT assembly?

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

+22
scala sbt
Mar 19 2018-12-12T00
source share
2 answers

Instead of compile you can use package . Compilation tasks also run tests, but the package does not.

+3
May 20 '14 at 11:44
source share

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

 test in assembly := {} 
+72
Oct 26 '12 at 12:17
source share



All Articles