Merge pull request #1139 from lucamilanesio/0.13

Completed a full example of forked tests with grouping
This commit is contained in:
Josh Suereth 2014-02-28 10:33:34 -05:00
commit 3944955d62
1 changed files with 4 additions and 3 deletions

View File

@ -191,7 +191,7 @@ The setting:
specifies that all tests will be executed in a single external JVM. See
:doc:`Forking` for configuring standard options for forking. More control
over how tests are assigned to JVMs and what options to pass to those is
available with :key:`testGrouping` key. For example:
available with :key:`testGrouping` key. For example in build.sbt:
::
@ -201,8 +201,9 @@ available with :key:`testGrouping` key. For example:
def groupByFirst(tests: Seq[TestDefinition]) =
tests groupBy (_.name(0)) map {
case (letter, tests) => new Group(letter.toString, tests, SubProcess(Seq("-Dfirst.letter"+letter)))
} toSeq;
testGrouping := groupByFirst( (definedTests in Test).value )
} toSeq
testGrouping in Test <<= groupByFirst( (definedTests in Test).value )
}
The tests in a single group are run sequentially. Control the number