@@ -40,6 +40,7 @@ sealed trait CommunityProject:
4040 val publishCommand : String
4141 val docCommand : String
4242 val dependencies : List [CommunityProject ]
43+ val testOnlyDependencies : () => List [CommunityProject ]
4344 val binaryName : String
4445 val runCommandsArgs : List [String ] = Nil
4546 val requiresExperimental : Boolean
@@ -87,6 +88,7 @@ final case class MillCommunityProject(
8788 project : String ,
8889 baseCommand : String ,
8990 dependencies : List [CommunityProject ] = Nil ,
91+ testOnlyDependencies : () => List [CommunityProject ] = () => Nil ,
9092 ignoreDocs : Boolean = false ,
9193 requiresExperimental : Boolean = false ,
9294 ) extends CommunityProject :
@@ -104,6 +106,7 @@ final case class SbtCommunityProject(
104106 sbtTestCommand : String ,
105107 extraSbtArgs : List [String ] = Nil ,
106108 dependencies : List [CommunityProject ] = Nil ,
109+ testOnlyDependencies : () => List [CommunityProject ] = () => Nil ,
107110 sbtPublishCommand : String = null ,
108111 sbtDocCommand : String = null ,
109112 scalacOptions : List [String ] = SbtCommunityProject .scalacOptions,
@@ -273,15 +276,17 @@ object projects:
273276 sbtDocCommand = forceDoc(" jvm" )
274277 )
275278
276- lazy val scalatest = SbtCommunityProject (
279+ lazy val scalatest : SbtCommunityProject = SbtCommunityProject (
277280 project = " scalatest" ,
278- sbtTestCommand = " scalacticDotty/clean;scalacticTestDotty/test; scalatestTestDotty/test" ,
279- sbtPublishCommand = " scalacticDotty/publishLocal; scalatestDotty/publishLocal" ,
280- sbtDocCommand = " ;scalacticDotty/doc" // fails with missing type ;scalatestDotty/doc"
281+ sbtTestCommand = " scalacticDotty/clean; scalacticDottyJS/clean; scalacticTestDotty/test; scalatestTestDotty/test; scalacticDottyJS/compile; scalatestDottyJS/compile " ,
282+ sbtPublishCommand = " scalacticDotty/publishLocal; scalatestDotty/publishLocal; scalacticDottyJS/publishLocal; scalatestDottyJS/publishLocal " ,
283+ sbtDocCommand = " ;scalacticDotty/doc" , // fails with missing type ;scalatestDotty/doc"
281284 // cannot take signature of (test: org.scalatest.concurrent.ConductorFixture#OneArgTest):
282285 // org.scalatest.Outcome
283286 // Problem parsing scalatest.dotty/target/scala-3.0.0-M2/src_managed/main/org/scalatest/concurrent/ConductorFixture.scala:[602..624..3843], documentation may not be generated.
284287 // dotty.tools.dotc.core.MissingType:
288+ dependencies = List (scalaXml),
289+ testOnlyDependencies = () => List (scalatestplusJunit, scalatestplusTestNG)
285290 )
286291
287292 lazy val scalatestplusScalacheck = SbtCommunityProject (
@@ -299,9 +304,17 @@ object projects:
299304 dependencies = List (scalatest)
300305 )
301306
307+ lazy val scalatestplusTestNG = SbtCommunityProject (
308+ project = " scalatestplus-testng" ,
309+ sbtTestCommand = " test" ,
310+ sbtPublishCommand = " publishLocal" ,
311+ dependencies = List (scalatest)
312+ )
313+
302314 lazy val scalaXml = SbtCommunityProject (
303315 project = " scala-xml" ,
304- sbtTestCommand = " xml/test" ,
316+ sbtTestCommand = " xml/test" ,
317+ sbtPublishCommand = " xml/publishLocal" ,
305318 sbtDocCommand = " xml/doc"
306319 )
307320
@@ -736,6 +749,7 @@ def allProjects = List(
736749 projects.protoquill,
737750 projects.onnxScala,
738751 projects.playJson,
752+ projects.scalatestplusTestNG,
739753)
740754
741755lazy val projectMap = allProjects.groupBy(_.project)
0 commit comments