scala - Setting tagsToExclude in SBT -
scalatest allows setting of tags excluded via filter called tagstoexclude
.
how can configure sbt build set value?
attempt 1
the cli of scalatest specifies -l
flag tags exclude.
sbt allows setting of cli params so:
testoptions in test += tests.argument( testframeworks.scalatest, "-l", "datafiletest")`
but seems have no effect (i.e. test still executes).
for reference test looks like:
object datafiletest extends org.scalatest.tag("com.mydomain.datafiletest") class mydatafiledependantspec extends funspec matchers beforeandafter beforeandafterall { describe("something") { it("reads file , things", datafiletest) { ... } }
testoptions in test ++= seq(tests.argument(testframeworks.scalatest, "-l", "org.scalatest.tags.slow")
this works.
see if problem full path name of datafiletest.
Comments
Post a Comment