Calin-Andrei Burloiu
Calin-Andrei Burloiu

Reputation: 1481

How to make the sbt assembly task depend on test

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

Upvotes: 2

Views: 326

Answers (1)

Gaël J
Gaël J

Reputation: 15105

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 ...
  )

Upvotes: 2

Related Questions