diff --git a/project/scripts/bisect.scala b/project/scripts/bisect.scala index d920dfd528a1..fb53807f62b6 100755 --- a/project/scripts/bisect.scala +++ b/project/scripts/bisect.scala @@ -20,6 +20,7 @@ val usageMessage = """ |The should be one of: |* compile ... |* run ... + |* test ... |* | |The arguments for 'compile' and 'run' should be paths to the source file(s) and optionally additional options passed directly to scala-cli. @@ -100,6 +101,7 @@ object ScriptOptions: enum ValidationCommand: case Compile(args: Seq[String]) case Run(args: Seq[String]) + case Test(args: Seq[String]) case CustomValidationScript(scriptFile: File) def validationScript: File = this match @@ -107,6 +109,8 @@ enum ValidationCommand: ValidationScript.tmpScalaCliScript(command = "compile", args) case Run(args) => ValidationScript.tmpScalaCliScript(command = "run", args) + case Test(args) => + ValidationScript.tmpScalaCliScript(command = "test", args) case CustomValidationScript(scriptFile) => ValidationScript.copiedFrom(scriptFile) @@ -114,6 +118,7 @@ object ValidationCommand: def fromArgs(args: Seq[String]) = args match case Seq("compile", commandArgs*) => Compile(commandArgs) case Seq("run", commandArgs*) => Run(commandArgs) + case Seq("test", commandArgs*) => Test(commandArgs) case Seq(path) => CustomValidationScript(new File(path))