class Runner extends AnyRef
- Alphabetic
- By Inheritance
- Runner
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Runner(testInfo: TestInfo, suiteRunner: AbstractRunner)
Type Members
- sealed abstract class CompileRound extends AnyRef
- final case class OnlyJava(files: List[java.io.File]) extends CompileRound with Product with Serializable
- final case class OnlyScala(files: List[java.io.File]) extends CompileRound with Product with Serializable
- final case class ScalaAndJava(files: List[java.io.File]) extends CompileRound with Product with Serializable
- final case class SkipRound(files: List[java.io.File], state: TestState) extends CompileRound with Product with Serializable
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- def ->[B](y: B): (Runner, B)
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def attemptCompile(sources: List[java.io.File]): TestState
- def cleanup(state: TestState): Unit
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def compilationRounds(file: java.io.File): List[CompileRound]
- def crashHandler: PartialFunction[Throwable, TestState]
- def currentDiff: String
- def diffIsOk: TestState
- def ensuring(cond: (Runner) => Boolean, msg: => Any): Runner
- def ensuring(cond: (Runner) => Boolean): Runner
- def ensuring(cond: Boolean, msg: => Any): Runner
- def ensuring(cond: Boolean): Runner
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def execTestInProcess(classesDir: java.io.File, log: java.io.File): TestState
- def extraClasspath: collection.immutable.List[nsc.io.File]
- def extraJavaOptions: Array[String]
- def fail(what: Any): Boolean
- val fileManager: FileManager
- def filteredCheck: Seq[String]
Filter the check file for conditional blocks.
Filter the check file for conditional blocks. The check file can contain lines of the form:
#partest java7
where the line contains a conventional flag name. If the flag tests true, succeeding lines are retained (removed on false) until the next #partest flag. A missing flag evaluates the same as true. - def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def flagsForCompilation(sources: List[java.io.File]): List[String]
- def genCrash(caught: Throwable): Crash
- def genFail(reason: String): Fail
- def genPass(): TestState
- def genResult(b: Boolean): TestState
- def genSkip(reason: String): Skip
- def genTimeout(): Fail
- def genUpdated(): Updated
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def gitDiff(f1: java.io.File, f2: java.io.File): Option[String]
- def groupedFiles(sources: List[java.io.File]): List[List[java.io.File]]
Grouped files in group order, and lex order within each group.
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def javac(files: List[java.io.File]): TestState
- def mixedCompileGroup(allFiles: List[java.io.File]): List[CompileRound]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def newCompiler: DirectCompiler
- def nextTestAction[T](body: => T)(eval: PartialFunction[T, TestState]): TestState
Evaluate an action body and judge whether it passed.
- def nextTestActionExpectTrue(reason: String, body: => Boolean): TestState
If the action does not result in true, fail the action.
- def nextTestActionFailing(reason: String): TestState
Fail the action.
- def normalizeLog(): Unit
Normalize the log output by applying test-specific filters and fixing filesystem-specific paths.
Normalize the log output by applying test-specific filters and fixing filesystem-specific paths.
Line filters are picked up from
filter: pattern
at the top of sources. The filtered line is detected with a simple "contains" test, and yes, "filter" means "filter out" in this context.File paths are detected using the absolute path of the test root. A string that looks like a file path is normalized by replacing the leading segments (the root) with "$ROOT" and by replacing any Windows backslashes with the one true file separator char.
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- lazy val outDir: java.io.File
- def propertyOptions(fork: Boolean): List[(String, String)]
- def pushTranscript(msg: String): TestTranscript
- def run(): (TestState, Long)
- def runCommand(args: Seq[String], outFile: java.io.File): Boolean
Runs command redirecting standard out and error out to output file.
Runs command redirecting standard out and error out to output file.
- Attributes
- protected
- def runNegTest(): TestState
- def runPosTest(): TestState
- def runResidentTest(): TestState
- def runScalapTest(): TestState
- def runScriptTest(): TestState
- def runTestCommon(inspector: (TestState) => TestState = identity, expectCompile: Boolean = true)(andAlso: (TestState) => TestState = _ => genPass()): TestState
- def sources(file: java.io.File): List[java.io.File]
Source files for the given test file.
- val suiteRunner: AbstractRunner
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val testInfo: TestInfo
- def toString(): String
- Definition Classes
- Runner → AnyRef → Any
- def toolArgs(tool: ToolName): List[String]
- def toolArgsFor(files: List[java.io.File])(tool: ToolName): List[String]
- def transcript: List[String]
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Deprecated Value Members
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from Runner toStringFormat[Runner] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.12.16) Use
formatString.format(value)
instead ofvalue.formatted(formatString)
, or use thef""
string interpolator. In Java 15 and later,formatted
resolves to the new method in String which has reversed parameters.
- def →[B](y: B): (Runner, B)
- Implicit
- This member is added by an implicit conversion from Runner toArrowAssoc[Runner] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.