Github user nchammas commented on a diff in the pull request:
https://github.com/apache/spark/pull/3564#discussion_r22146321
--- Diff: project/SparkBuild.scala ---
@@ -397,15 +427,44 @@ object TestSettings {
javaOptions in Test +=
"-Dspark.executor.extraClassPath=" + (fullClasspath in
Test).value.files.
map(_.getAbsolutePath).mkString(":").stripSuffix(":"),
+
javaOptions += "-Xmx3g",
+
// Show full stack trace and duration in test cases.
testOptions in Test += Tests.Argument("-oDF"),
testOptions += Tests.Argument(TestFrameworks.JUnit, "-v", "-a"),
// Enable Junit testing.
libraryDependencies += "com.novocode" % "junit-interface" % "0.9" %
"test",
- // Only allow one test at a time, even across projects, since they run
in the same JVM
- parallelExecution in Test := false,
- concurrentRestrictions in Global += Tags.limit(Tags.Test, 1),
+
+ // Parallelize execution of tests
+ parallelExecution in Test := true,
+ testForkedParallel in Test := false,
+ concurrentRestrictions in Global :=
Seq(Tags.limit(Tags.ForkedTestGroup, 8)),
+
+ testGrouping in Test <<= (definedTests in Test, javaOptions in Test)
map groupBySuite,
--- End diff --
Found the answer here btw:
http://stackoverflow.com/questions/22795172/sbt-difference-between-and
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]