@@ -40,6 +40,7 @@ sealed trait CommunityProject:
40
40
val publishCommand : String
41
41
val docCommand : String
42
42
val dependencies : List [CommunityProject ]
43
+ val testOnlyDependencies : () => List [CommunityProject ]
43
44
val binaryName : String
44
45
val runCommandsArgs : List [String ] = Nil
45
46
val requiresExperimental : Boolean
@@ -87,6 +88,7 @@ final case class MillCommunityProject(
87
88
project : String ,
88
89
baseCommand : String ,
89
90
dependencies : List [CommunityProject ] = Nil ,
91
+ testOnlyDependencies : () => List [CommunityProject ] = () => Nil ,
90
92
ignoreDocs : Boolean = false ,
91
93
requiresExperimental : Boolean = false ,
92
94
) extends CommunityProject :
@@ -104,6 +106,7 @@ final case class SbtCommunityProject(
104
106
sbtTestCommand : String ,
105
107
extraSbtArgs : List [String ] = Nil ,
106
108
dependencies : List [CommunityProject ] = Nil ,
109
+ testOnlyDependencies : () => List [CommunityProject ] = () => Nil ,
107
110
sbtPublishCommand : String = null ,
108
111
sbtDocCommand : String = null ,
109
112
scalacOptions : List [String ] = SbtCommunityProject .scalacOptions,
@@ -273,15 +276,17 @@ object projects:
273
276
sbtDocCommand = forceDoc(" jvm" )
274
277
)
275
278
276
- lazy val scalatest = SbtCommunityProject (
279
+ lazy val scalatest : SbtCommunityProject = SbtCommunityProject (
277
280
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"
281
284
// cannot take signature of (test: org.scalatest.concurrent.ConductorFixture#OneArgTest):
282
285
// org.scalatest.Outcome
283
286
// 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.
284
287
// dotty.tools.dotc.core.MissingType:
288
+ dependencies = List (scalaXml),
289
+ testOnlyDependencies = () => List (scalatestplusJunit, scalatestplusTestNG)
285
290
)
286
291
287
292
lazy val scalatestplusScalacheck = SbtCommunityProject (
@@ -299,9 +304,17 @@ object projects:
299
304
dependencies = List (scalatest)
300
305
)
301
306
307
+ lazy val scalatestplusTestNG = SbtCommunityProject (
308
+ project = " scalatestplus-testng" ,
309
+ sbtTestCommand = " test" ,
310
+ sbtPublishCommand = " publishLocal" ,
311
+ dependencies = List (scalatest)
312
+ )
313
+
302
314
lazy val scalaXml = SbtCommunityProject (
303
315
project = " scala-xml" ,
304
- sbtTestCommand = " xml/test" ,
316
+ sbtTestCommand = " xml/test" ,
317
+ sbtPublishCommand = " xml/publishLocal" ,
305
318
sbtDocCommand = " xml/doc"
306
319
)
307
320
@@ -736,6 +749,7 @@ def allProjects = List(
736
749
projects.protoquill,
737
750
projects.onnxScala,
738
751
projects.playJson,
752
+ projects.scalatestplusTestNG,
739
753
)
740
754
741
755
lazy val projectMap = allProjects.groupBy(_.project)
0 commit comments