Home > Net >  How to make the sbt assembly task depend on test
How to make the sbt assembly task depend on test

Time:12-09

When I run sbt assembly the tests are not run. How can I make the tests to run before running the assembly task?

CodePudding user response:

From the documentation at https://github.com/sbt/sbt-assembly#assembly-task:

To run the test during assembly,

lazy val app = (project in file("app"))
  .settings(
    assembly / test := (Test / test).value,
    // more settings here ...
  )
  • Related