=pro,doc Update sbt-multi-jvm plugin to 0.3.8 and add sbt 0.13 docs
This commit is contained in:
parent
3721072153
commit
62d2c17268
2 changed files with 26 additions and 2 deletions
|
|
@ -21,7 +21,7 @@ You can then add multi-JVM testing to ``project/Build.scala`` by including the `
|
|||
settings and config. Please note that MultiJvm test sources are located in ``src/multi-jvm/...``,
|
||||
and not in ``src/test/...``.
|
||||
|
||||
Here is an example Build.scala file that uses the MultiJvm plugin:
|
||||
Here is an example Build.scala file for sbt 0.12 that uses the MultiJvm plugin:
|
||||
|
||||
.. parsed-literal::
|
||||
|
||||
|
|
@ -78,6 +78,30 @@ Here is an example Build.scala file that uses the MultiJvm plugin:
|
|||
}
|
||||
}
|
||||
|
||||
If you are using sbt 0.13 the multiJvmSettings in the Build.scala file looks like this instead:
|
||||
|
||||
.. parsed-literal::
|
||||
|
||||
lazy val multiJvmSettings = SbtMultiJvm.multiJvmSettings ++ Seq(
|
||||
// make sure that MultiJvm test are compiled by the default test compilation
|
||||
compile in MultiJvm <<= (compile in MultiJvm) triggeredBy (compile in Test),
|
||||
// disable parallel tests
|
||||
parallelExecution in Test := false,
|
||||
// make sure that MultiJvm tests are executed by the default test target
|
||||
executeTests in Test <<=
|
||||
((executeTests in Test), (executeTests in MultiJvm)) map {
|
||||
case ((testResults), (multiJvmResults)) =>
|
||||
val overall =
|
||||
if (testResults.overall.id < multiJvmResults.overall.id)
|
||||
multiJvmResults.overall
|
||||
else
|
||||
testResults.overall
|
||||
Tests.Output(overall,
|
||||
testResults.events ++ multiJvmResults.events,
|
||||
testResults.summaries ++ multiJvmResults.summaries)
|
||||
}
|
||||
)
|
||||
|
||||
You can specify JVM options for the forked JVMs::
|
||||
|
||||
jvmOptions in MultiJvm := Seq("-Xmx256M")
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ resolvers += Classpaths.typesafeResolver
|
|||
|
||||
// these comment markers are for including code into the docs
|
||||
//#sbt-multi-jvm
|
||||
addSbtPlugin("com.typesafe.sbt" % "sbt-multi-jvm" % "0.3.6")
|
||||
addSbtPlugin("com.typesafe.sbt" % "sbt-multi-jvm" % "0.3.8")
|
||||
//#sbt-multi-jvm
|
||||
|
||||
addSbtPlugin("com.typesafe.sbt" % "sbt-scalariform" % "1.0.0")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue