Group tests and run suite only

I want to have an extra battery of tests for working with the database in addition to a unit test battery that doesn't require I / O. What's the best way to do this with specs2 and sbt?

+3


source to share


1 answer


One solution would be to place them in a namespace and use the command sbt test-only

:

$ sbt
> test-only com.example.utils.*

      



There is also the concept of tags in Specs2 , which can be used to include or exclude tests at runtime via SBT Configuration .

+3


source







All Articles