scala.tools.partest.nest

Runner

class Runner extends AnyRef

Run a single test. Rubber meets road.

Linear Supertypes
AnyRef, Any
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Runner
  2. AnyRef
  3. Any
Implicitly
  1. by StringAdd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Runner(testFile: java.io.File, fileManager: FileManager, testRunParams: TestRunParams)

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: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from Runner to StringAdd[Runner] performed by method StringAdd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (Runner, B)

    Implicit information
    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()
  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. def ant(args: Seq[String], output: java.io.File): Boolean

  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def attemptCompile(sources: List[java.io.File]): TestState

  11. val checkFile: File

  12. def cleanup(): Unit

  13. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. def codelib: String

  15. def compilationRounds(file: java.io.File): List[CompileRound]

  16. def crashHandler: PartialFunction[Throwable, TestState]

    Attributes
    protected
  17. def currentDiff: String

  18. def diffIsOk: Boolean

  19. def diffilter(d: String): String

    Filter the diff for conditional blocks.

    Filter the diff for conditional blocks. The check file can contain lines of the form: #partest java7 where the line contains a conventional flag name. In the diff output, these lines have the form: > #partest java7 Blocks which don't apply are filtered out, and what remains is the desired diff. Line edit commands such as 0a1,6 don't count as diff, so return a nonempty diff only if material diff output was seen. Filtering the diff output (instead of every check file) means that we only post-process a test that might be failing, in the normal case.

  20. def ensuring(cond: (Runner) ⇒ Boolean, msg: ⇒ Any): Runner

    Implicit information
    This member is added by an implicit conversion from Runner to Ensuring[Runner] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  21. def ensuring(cond: (Runner) ⇒ Boolean): Runner

    Implicit information
    This member is added by an implicit conversion from Runner to Ensuring[Runner] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  22. def ensuring(cond: Boolean, msg: ⇒ Any): Runner

    Implicit information
    This member is added by an implicit conversion from Runner to Ensuring[Runner] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  23. def ensuring(cond: Boolean): Runner

    Implicit information
    This member is added by an implicit conversion from Runner to Ensuring[Runner] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  24. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  25. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  26. def extraClasspath: String

  27. def extraJavaOptions: String

  28. def fail(what: Any): Boolean

  29. val fileBase: String

  30. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  31. val flagsFile: File

  32. def flagsForCompilation(sources: List[java.io.File]): List[String]

  33. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from Runner to StringFormat[Runner] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  34. def genCrash(caught: Throwable): Crash

  35. def genFail(reason: String): Fail

  36. def genPass(): Pass

  37. def genTimeout(): Fail

  38. def genUpdated(): Updated

  39. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  40. def gitDiff(f1: java.io.File, f2: java.io.File): Option[String]

  41. val gitDiffOptions: String

  42. val gitRunner: Option[java.io.File]

  43. def groupedFiles(files: List[java.io.File]): List[List[java.io.File]]

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

  44. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  45. def isEnumeratedTest: Boolean

  46. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  47. def javac(files: List[java.io.File]): TestState

  48. val kind: String

  49. def lastState: TestState

  50. val logFile: java.io.File

  51. def mixedCompileGroup(allFiles: List[java.io.File]): List[CompileRound]

  52. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  53. def newCompiler: DirectCompiler

  54. def newTestWriters(): (java.io.StringWriter, PrintWriter)

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

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

  57. def nextTestActionFailing(reason: String): Boolean

  58. def normalizeLog(): Unit

    This does something about absolute paths and file separator chars before diffing.

  59. final def notify(): Unit

    Definition Classes
    AnyRef
  60. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  61. lazy val outDir: File

  62. val outFile: File

  63. val parentFile: java.io.File

  64. def prependTo(classpath: String, path: String): String

  65. def prependToClasspaths(s: Settings, path: String): Unit

  66. def prependToJavaClasspath(path: String): Unit

  67. def pushTranscript(msg: String): TestTranscript

  68. def run(): TestState

  69. def runAntTest(): (Boolean, LogContext)

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

  71. def runNegTest(): (Boolean, LogContext)

  72. def runResidentTest(): (Boolean, LogContext)

  73. def runScalacheckTest(): (Boolean, LogContext)

  74. def runScalapTest(): (Boolean, LogContext)

  75. def runScriptTest(): (Boolean, LogContext)

  76. def runTestCommon(andAlso: ⇒ Boolean): (Boolean, LogContext)

  77. def setLastState(s: TestState): Unit

  78. def showCrashInfo(t: Throwable): Unit

  79. def sources(file: java.io.File): List[java.io.File]

    Source files for the given test file.

  80. def speclib: String

  81. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  82. val testFile: java.io.File

  83. val testIdent: String

  84. def testPrompt: String

  85. val testRunParams: TestRunParams

  86. def toString(): String

    Definition Classes
    Runner → AnyRef → Any
  87. def transcript: List[String]

  88. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  89. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  90. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  91. def [B](y: B): (Runner, B)

    Implicit information
    This member is added by an implicit conversion from Runner to ArrowAssoc[Runner] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion StringAdd from Runner to StringAdd[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