Pergunta

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.

Foi útil?

Solução

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/

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top