Sure, it cannot be done clearly for parallel execution, but it solvable for sequential:
parallelExecution in test := false
testGrouping <<= definedTests in Test map { tests =>
tests.map { test =>
import Tests._
new Group(
name = test.name,
tests = Seq(test),
runPolicy = InProcess)
}.sortWith(_.name < _.name)
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…