Group unit tests and run only a set

132 Views Asked by At

I want to have an additional battery of tests to run against a database in addition to the unit test battery that requires no IO. What's the best way to do this with specs2 and sbt?

1

There are 1 best solutions below

0
On

One of the solutions would be to put them in a namespace and use sbt test-only command:

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

There's also a notion of tags in Specs2, which could be used to include or exclude tests at run time via SBT configuration.