Sbt-assembly: skip a specific test

I would like to configure sbt-assembly to skip a specific test class.

Is there any way to do this? If this helps, I tagged the test using the ScalaTest @Network tag.

+4
sbt sbt-assembly
Mar 18 '14 at 13:42
source share
3 answers

See Additional test configurations with shared sources . This allows you to come up with an alternative β€œtest” task in the FunTest configuration when reusing your test source.

After fun:test works with any filter that you define using testOptions in FunTest := Seq(Tests.Filter(itFilter)) , you can reprogram

 test in assembly := test in FunTest 
+3
Mar 19 '14 at 3:20
source share

Eugene is right (obviously), but I didn’t have enough information to make it work - I have a build.scala file. I define baseSettings as follows:

  val baseSettings = Defaults.defaultSettings ++ buildSettings ++ Seq(sbt.Keys.test in assembly := {}) 
+1
Jan 13 '15 at 22:52
source share

You can mark your tests with ignore , then sbt / ScalaTest will not run them. See ScalaTest Docs in Tag Testing .

Just for completeness, if you want to skip all the tests in the build task or run only specific ones, you can configure it with test in assembly := { ... }

0
Mar 18 '14 at 16:50
source share



All Articles