Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Group unit tests and run only a set

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?

like image 939
piotr Avatar asked Nov 26 '25 05:11

piotr


1 Answers

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.

like image 118
detunized Avatar answered Nov 28 '25 20:11

detunized



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!