Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How run sbt assembly command without tests from command line?

Tags:

testing

build

sbt

I have read questions: this and that. They suggest to modify sbt file. But I want run sbt clean assembly without tests and do not modify sbt build files. Is it possible with sbt? In maven there is -DskipTest=true parameter, is there analog for sbt?

like image 882
Cherry Avatar asked Oct 22 '14 02:10

Cherry


People also ask

Does sbt test compile?

The following commands will make sbt watch for source changes in the Test and Compile (default) configurations respectively and re-run the compile command. Note that because Test / compile depends on Compile / compile , source changes in the main source directory will trigger recompilation of the test sources.


1 Answers

For any properties you need to change on the command line, prepend them with "set ", and wrap them in quotes.

Example for Windows:

sbt "set test in assembly := {}" clean assembly 

Example for Mac:

sbt 'set test in assembly := {}' clean assembly 
like image 166
kshakir Avatar answered Oct 07 '22 23:10

kshakir