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?
Please sign in to leave a comment.
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..
Thanks! I hadn't realized what this Test options field accepted. Perhaps it should be noted somewhere.
Hello, I am trying to exclude by tags but in Intellj 2023.3 I don't see Test options field in ScalaTest run configuration. How to do in modern Intellij?