class Runner extends TestInfo

Run a single test. Rubber meets road.

Source
Runner.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Runner
  2. TestInfo
  3. AnyRef
  4. 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(testFile: java.io.File, suiteRunner: SuiteRunner, nestUI: NestUI)

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. type RanOneTest = (Boolean, LogContext)
  5. case class ScalaAndJava(fs: List[java.io.File]) 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 toany2stringadd[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 toArrowAssoc[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. val checkFile: File

    pos/t1234.check

    pos/t1234.check

    Definition Classes
    RunnerTestInfo
  9. def cleanup(): Unit
  10. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws(classOf[java.lang.CloneNotSupportedException])
  11. def compilationRounds(file: java.io.File): List[CompileRound]
  12. def crashHandler: PartialFunction[Throwable, TestState]
    Attributes
    protected
  13. def currentDiff: String
  14. def diffIsOk: Boolean
  15. def ensuring(cond: (Runner) ⇒ Boolean, msg: ⇒ Any): Runner
    Implicit
    This member is added by an implicit conversion from Runner toEnsuring[Runner] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: (Runner) ⇒ Boolean): Runner
    Implicit
    This member is added by an implicit conversion from Runner toEnsuring[Runner] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. def ensuring(cond: Boolean, msg: ⇒ Any): Runner
    Implicit
    This member is added by an implicit conversion from Runner toEnsuring[Runner] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. def ensuring(cond: Boolean): Runner
    Implicit
    This member is added by an implicit conversion from Runner toEnsuring[Runner] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  19. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  21. def execTestInProcess(classesDir: java.io.File, log: java.io.File): Boolean
  22. def extraClasspath: collection.immutable.List[nsc.io.File]
  23. def extraJavaOptions: Array[String]
  24. def fail(what: Any): Boolean
  25. val fileBase: String
  26. val fileManager: FileManager
  27. 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.

  28. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  29. val flagsFile: File

    pos/t1234.flags

    pos/t1234.flags

    Definition Classes
    RunnerTestInfo
  30. def flagsForCompilation(sources: List[java.io.File]): List[String]
  31. 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
    @inline()
  32. def genCrash(caught: Throwable): Crash
  33. def genFail(reason: String): Fail
  34. def genPass(): Pass
  35. def genTimeout(): Fail
  36. def genUpdated(): Updated
  37. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  38. def gitDiff(f1: java.io.File, f2: java.io.File): Option[String]
  39. val gitDiffOptions: String
  40. val gitRunner: Option[java.io.File]
  41. def groupedFiles(sources: List[java.io.File]): List[List[java.io.File]]

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

  42. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  43. def isEnumeratedTest: Boolean
  44. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  45. def javac(files: List[java.io.File]): TestState
  46. val kind: String

    pos

    pos

    Definition Classes
    RunnerTestInfo
  47. def lastState: TestState
  48. val logFile: java.io.File

    pos/t1234-pos.log

    pos/t1234-pos.log

    Definition Classes
    RunnerTestInfo
  49. def mixedCompileGroup(allFiles: List[java.io.File]): List[CompileRound]
  50. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  51. val nestUI: NestUI
  52. def newCompiler: DirectCompiler
  53. def newTestWriters(): (java.io.StringWriter, PrintWriter)
  54. def nextTestAction[T](body: ⇒ T)(failFn: PartialFunction[T, TestState]): T

    Evaluate an action body and update the test state.

    Evaluate an action body and update the test state.

    failFn

    optionally map a result to a test state.

  55. def nextTestActionExpectTrue(reason: String, body: ⇒ Boolean): Boolean
  56. def nextTestActionFailing(reason: String): Boolean
  57. 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.

  58. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  59. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  60. lazy val outDir: File
  61. val outFile: File

    pos/t1234-pos.obj

    pos/t1234-pos.obj

    Definition Classes
    RunnerTestInfo
  62. val parentFile: java.io.File
  63. def propertyOptions(fork: Boolean): List[(String, String)]
  64. def pushTranscript(msg: String): TestTranscript
  65. def run(): (TestState, Long)
  66. 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
  67. def runInContext(body: ⇒ Boolean): (Boolean, LogContext)

    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

  68. def runNegTest(): (Boolean, LogContext)
  69. def runResidentTest(): (Boolean, LogContext)
  70. def runScalapTest(): (Boolean, LogContext)
  71. def runScriptTest(): (Boolean, LogContext)
  72. def runTestCommon(andAlso: ⇒ Boolean): (Boolean, LogContext)
  73. def setLastState(s: TestState): Unit
  74. def showCrashInfo(t: Throwable): Unit
  75. def sources(file: java.io.File): List[java.io.File]

    Source files for the given test file.

  76. val suiteRunner: SuiteRunner
  77. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  78. val testFile: java.io.File

    pos/t1234.scala or pos/t1234 if dir

    pos/t1234.scala or pos/t1234 if dir

    Definition Classes
    RunnerTestInfo
  79. val testIdent: String

    pos/t1234

    pos/t1234

    Definition Classes
    RunnerTestInfo
  80. def testPrompt: String
  81. def toString(): String
    Definition Classes
    Runner → AnyRef → Any
  82. def toolArgs(tool: String, split: Boolean = true): List[String]
  83. def toolArgsFor(files: List[java.io.File])(tool: String, split: Boolean = true): List[String]
  84. def transcript: List[String]
  85. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  86. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  87. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws(classOf[java.lang.InterruptedException])
  88. 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

Inherited from TestInfo

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd fromRunner to any2stringadd[Runner]

Inherited by implicit conversion StringFormat fromRunner to StringFormat[Runner]

Inherited by implicit conversion Ensuring fromRunner to Ensuring[Runner]

Inherited by implicit conversion ArrowAssoc fromRunner to ArrowAssoc[Runner]

Ungrouped