In particular, for the Scalatra project, but the question is probably applicable to most.
For example, I usually want to run:
- unit tests
- code quality checks (coverage, duplication, complexity, jsLint!)
- integration tests (not too much!)
- acceptance tests (usually a subset of "pre-checkin")
- regression tests (basically the same as acceptance tests, but larger)
- performance tests
I want to run different subsets of them in context - i.e. after a simple code change, I could just run the first three; before checking, I might want to run a large set, and the continuous integration server may have a βfastβ and βslowβ build with even larger sets.
The sbt core docs seem to imply a single target βtestβ - is there a recommended way to implement several testing steps, such as?
Korny
source share