Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I skip tests in an SBT build?

Tags:

scala

sbt

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?

like image 426
trustin Avatar asked Mar 19 '12 00:03

trustin


People also ask

Does sbt test compile?

We have a build. sbt file that is used for multiple projects. Doing sbt test:compile compiled the tests for every single project and took over 30 minutes.


1 Answers

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 := {} 
like image 98
OlliM Avatar answered Sep 29 '22 11:09

OlliM