I want to create few specifications that interoperate with database.
class DocumentSpec extends mutable.Specification with BeforeAfterExample {
sequential
d
Meanwhile there is a better solution (http://www.scala-sbt.org/release/docs/Parallel-Execution.html):
sbt 0.12.0 introduces a general infrastructure for restricting task concurrency beyond the usual ordering declarations.
This configuration will run all tests sequential, also if they are in subprojects:
concurrentRestrictions in Global := Seq(
Tags.limit(Tags.CPU, 2),
Tags.limit(Tags.Network, 10),
Tags.limit(Tags.Test, 1),
Tags.limitAll( 15 )
)
I haven't tested if this can be overridden by each sub-project, so the sub-project can run its tests in parallel.