Exclude via tags in ScalaTest

I have a suite of tests using ScalaTest (and specifically FunSpec), and I have assigned some tags to some tests as described here:

http://www.scalatest.org/user_guide/tagging_your_tests

I would like to exclude some tests based on these tags, which seems to be possible with other ways of running the tests (eg. the Runner, the Maven plugin, ant, etc.).

Is that supported by the plugin? If yes, how? If not, will it be supported in the near future?

2 comments
Comment actions Permalink

You should be able to exclude them via Test options property of ScalaTest run configuration. I use "-n pl.package.test.MyTagName" to include tags, so "-l" should work for exclusion. Other Runner oprions should work as well..

0
Comment actions Permalink

Thanks! I hadn't realized what this Test options field accepted. Perhaps it should be noted somewhere.

0

Please sign in to leave a comment.