@@ -11,7 +11,7 @@ import scala.jdk.CollectionConverters.*
11
11
import scala .util .Properties
12
12
13
13
abstract class RunTestDefinitions (val scalaVersionOpt : Option [String ])
14
- extends ScalaCliSuite
14
+ extends WithWarmUpScalaCliSuite
15
15
with TestScalaVersionArgs
16
16
with RunScriptTestDefinitions
17
17
with RunScalaJsTestDefinitions
@@ -23,25 +23,13 @@ abstract class RunTestDefinitions(val scalaVersionOpt: Option[String])
23
23
with RunScalaPyTestDefinitions
24
24
with RunZipTestDefinitions {
25
25
26
- protected lazy val extraOptions : Seq [String ] = scalaVersionArgs ++ TestUtil .extraOptions
27
- protected val emptyInputs : TestInputs = TestInputs (os.rel / " .placeholder" -> " " )
26
+ protected lazy val extraOptions : Seq [String ] = scalaVersionArgs ++ TestUtil .extraOptions
27
+ protected val emptyInputs : TestInputs = TestInputs (os.rel / " .placeholder" -> " " )
28
+ override def warmUpExtraTestOptions : Seq [String ] = extraOptions
28
29
29
30
protected val ciOpt : Seq [String ] =
30
31
Option (System .getenv(" CI" )).map(v => Seq (" -e" , s " CI= $v" )).getOrElse(Nil )
31
32
32
- // warm-up run that downloads compiler bridges
33
- // The "Downloading compiler-bridge (from bloop?) pollute the output, and would make the first test fail.
34
- lazy val warmupTest : Unit = {
35
- System .err.println(" Running RunTests warmup test…" )
36
- simpleScriptTest(ignoreErrors = true )
37
- System .err.println(" Done running RunTests warmup test." )
38
- }
39
-
40
- override def test (name : String )(body : => Any )(implicit loc : munit.Location ): Unit =
41
- super .test(name) { warmupTest; body }(loc)
42
- override def test (name : munit.TestOptions )(body : => Any )(implicit loc : munit.Location ): Unit =
43
- super .test(name) { warmupTest; body }(loc)
44
-
45
33
test(" print command" ) {
46
34
val fileName = " simple.sc"
47
35
val message = " Hello"
0 commit comments