Reputation: 11346
I know I can filter which tests to run using Tests.Filter(s => s.endsWith("Test"))
.
However, Scalatest (and I'm sure other testing frameworks) has an @DoNotDiscover annotation for when running the framework directly.
I was wondering, is there a way to make SBT recognize this annotation?
Thanks
EDIT: I just found out that Tests.Filter(s => s.endsWith("Test"))
isn't what I want. I have some tests that shouldn't be ran in Jenkins. I would like these tests to not run when I type sbt test
. However, I would like these tests to run if called directly sbt test-only some.test
.
Upvotes: 1
Views: 386
Reputation: 116
I think you can't do it with ScalaTest 1.x, the latest 2.0.M6-SNAP36 should have it supported though:
https://oss.sonatype.org/content/groups/public/org/scalatest/scalatest_2.10/2.0.M6-SNAP36/
Upvotes: 2