class Runner extends AnyRef

Run a single test.

Self Type
Runner
Source
Runner.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Runner
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Runner(testInfo: TestInfo, suiteRunner: AbstractRunner)

Type Members

  1. abstract class CompileRound extends AnyRef
  2. case class OnlyJava(fs: List[java.io.File]) extends CompileRound with Product with Serializable
  3. case class OnlyScala(fs: List[java.io.File]) extends CompileRound with Product with Serializable
  4. case class ScalaAndJava(fs: List[java.io.File]) extends CompileRound with Product with Serializable
  5. case class SkipRound(fs: List[java.io.File], state: TestState) extends CompileRound with Product with Serializable

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from Runner to any2stringadd[Runner] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (Runner, B)
    Implicit
    This member is added by an implicit conversion from Runner to ArrowAssoc[Runner] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def attemptCompile(sources: List[java.io.File]): TestState
  8. def cleanup(state: TestState): Unit
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  10. def compilationRounds(file: java.io.File): List[CompileRound]
  11. def crashHandler: PartialFunction[Throwable, TestState]
    Attributes
    protected
  12. def currentDiff: String
  13. def diffIsOk: TestState
  14. def ensuring(cond: (Runner) ⇒ Boolean, msg: ⇒ Any): Runner
    Implicit
    This member is added by an implicit conversion from Runner to Ensuring[Runner] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: (Runner) ⇒ Boolean): Runner
    Implicit
    This member is added by an implicit conversion from Runner to Ensuring[Runner] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: Boolean, msg: ⇒ Any): Runner
    Implicit
    This member is added by an implicit conversion from Runner to Ensuring[Runner] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. def ensuring(cond: Boolean): Runner
    Implicit
    This member is added by an implicit conversion from Runner to Ensuring[Runner] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  20. def execTestInProcess(classesDir: java.io.File, log: java.io.File): TestState
  21. def extraClasspath: collection.immutable.List[nsc.io.File]
  22. def extraJavaOptions: Array[String]
  23. def fail(what: Any): Boolean
  24. val fileManager: FileManager
  25. 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.

  26. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  27. def flagsForCompilation(sources: List[java.io.File]): List[String]
  28. def genCrash(caught: Throwable): Crash
  29. def genFail(reason: String): Fail
  30. def genPass(): TestState
  31. def genResult(b: Boolean): TestState
  32. def genSkip(reason: String): Skip
  33. def genTimeout(): Fail
  34. def genUpdated(): Updated
  35. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  36. def gitDiff(f1: java.io.File, f2: java.io.File): Option[String]
  37. val gitDiffOptions: String
  38. val gitRunner: Option[java.io.File]
  39. def groupedFiles(sources: List[java.io.File]): List[List[java.io.File]]

    Grouped files in group order, and lex order within each group.

  40. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  41. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  42. def javac(files: List[java.io.File]): TestState
  43. def mixedCompileGroup(allFiles: List[java.io.File]): List[CompileRound]
  44. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  45. def newCompiler: DirectCompiler
  46. def nextTestAction[T](body: ⇒ T)(eval: PartialFunction[T, TestState]): TestState

    Evaluate an action body and judge whether it passed.

  47. def nextTestActionExpectTrue(reason: String, body: ⇒ Boolean): TestState

    If the action does not result in true, fail the action.

  48. def nextTestActionFailing(reason: String): TestState

    Fail the action.

  49. 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.

  50. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  51. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  52. lazy val outDir: java.io.File
  53. def propertyOptions(fork: Boolean): List[(String, String)]
  54. def pushTranscript(msg: String): TestTranscript
  55. def run(): (TestState, Long)
  56. 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
  57. def runInContext(body: ⇒ TestState): TestState

    1.

    1. Creates log file and output directory. 2. Runs script function, providing log file and output directory as arguments. 2b. or, just run the script without context and return a new context

  58. def runNegTest(): TestState
  59. def runPosTest(): TestState
  60. def runResidentTest(): TestState
  61. def runScalapTest(): TestState
  62. def runScriptTest(): TestState
  63. def runTestCommon(andAlso: ⇒ TestState = genPass): TestState
  64. def showCrashInfo(t: Throwable): Unit
  65. def sources(file: java.io.File): List[java.io.File]

    Source files for the given test file.

  66. val suiteRunner: AbstractRunner
  67. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  68. val testInfo: TestInfo
  69. def toString(): String
    Definition Classes
    Runner → AnyRef → Any
  70. def toolArgs(tool: String, split: Boolean = true): List[String]
  71. def toolArgsFor(files: List[java.io.File])(tool: String, split: Boolean = true): List[String]
  72. def transcript: List[String]
  73. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  74. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  75. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  76. def [B](y: B): (Runner, B)
    Implicit
    This member is added by an implicit conversion from Runner to ArrowAssoc[Runner] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Deprecated Value Members

  1. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from Runner to StringFormat[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 of value.formatted(formatString), or use the f"" string interpolator. In Java 15 and later, formatted resolves to the new method in String which has reversed parameters.

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Runner to any2stringadd[Runner]

Inherited by implicit conversion StringFormat from Runner to StringFormat[Runner]

Inherited by implicit conversion Ensuring from Runner to Ensuring[Runner]

Inherited by implicit conversion ArrowAssoc from Runner to ArrowAssoc[Runner]

Ungrouped