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

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

Simple Angular 2 project fails 'Unexpected reserved word' -

php - Get process resource by PID -