Skip to content

Commit 48f676b

Browse files
authored
Speed up tests with testForkGrouping (#4650)
1 parent e6a09d3 commit 48f676b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

build.mill

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,8 @@ trait Chisel extends CrossSbtModule with HasScala2MacroAnno with HasScala2Plugin
283283
// Suppress Scala 3 behavior requiring explicit types on implicit definitions
284284
// Note this must come before the -Wconf is warningSuppression
285285
override def scalacOptions = Task { super.scalacOptions() :+ "-Wconf:cat=other-implicit-type:s" }
286+
287+
override def testForkGrouping = discoveredTestClasses().grouped(8).toSeq
286288
}
287289
}
288290

integration-tests/package.mill

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,7 @@ trait IntegrationTests extends CrossSbtModule with HasScala2Plugin with HasCommo
2222
object test extends SbtTests with TestModule.ScalaTest with ScalafmtModule {
2323
override def moduleDeps = super.moduleDeps :+ chisel().test
2424
def ivyDeps = Agg(v.scalatest, v.scalacheck)
25+
26+
override def testForkGrouping = discoveredTestClasses().grouped(8).toSeq
2527
}
2628
}

0 commit comments

Comments
 (0)