Class

scala.tools.partest.nest

Runner

Related Doc: package nest

Permalink

class Runner extends TestInfo

Run a single test. Rubber meets road.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Runner
  2. TestInfo
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Runner(testFile: java.io.File, suiteRunner: SuiteRunner, nestUI: NestUI)

    Permalink

Type Members

  1. abstract class CompileRound extends AnyRef

    Permalink
  2. case class OnlyJava(fs: List[java.io.File]) extends CompileRound with Product with Serializable

    Permalink
  3. case class OnlyScala(fs: List[java.io.File]) extends CompileRound with Product with Serializable

    Permalink
  4. type RanOneTest = (Boolean, LogContext)

    Permalink
  5. case class ScalaAndJava(fs: List[java.io.File]) extends CompileRound with Product with Serializable

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

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

    Permalink
  5. final def asInstanceOf[T0]: T0

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

    Permalink
  7. val checkFile: File

    Permalink

    pos/t1234.check

    pos/t1234.check

    Definition Classes
    RunnerTestInfo
  8. def cleanup(): Unit

    Permalink
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def compilationRounds(file: java.io.File): List[CompileRound]

    Permalink
  11. def crashHandler: PartialFunction[Throwable, TestState]

    Permalink
    Attributes
    protected
  12. def currentDiff: String

    Permalink
  13. def diffIsOk: Boolean

    Permalink
  14. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  16. def extraClasspath: collection.immutable.List[nsc.io.File]

    Permalink
  17. def extraJavaOptions: Array[String]

    Permalink
  18. def fail(what: Any): Boolean

    Permalink
  19. val fileBase: String

    Permalink
  20. val fileManager: FileManager

    Permalink
  21. def filteredCheck: Seq[String]

    Permalink

    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.

  22. def finalize(): Unit

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

    Permalink

    pos/t1234.flags

    pos/t1234.flags

    Definition Classes
    RunnerTestInfo
  24. def flagsForCompilation(sources: List[java.io.File]): List[String]

    Permalink
  25. def genCrash(caught: Throwable): Crash

    Permalink
  26. def genFail(reason: String): Fail

    Permalink
  27. def genPass(): Pass

    Permalink
  28. def genTimeout(): Fail

    Permalink
  29. def genUpdated(): Updated

    Permalink
  30. final def getClass(): Class[_]

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

    Permalink
  32. val gitDiffOptions: String

    Permalink
  33. val gitRunner: Option[java.io.File]

    Permalink
  34. def groupedFiles(sources: List[java.io.File]): List[List[java.io.File]]

    Permalink

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

  35. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  36. def isEnumeratedTest: Boolean

    Permalink
  37. final def isInstanceOf[T0]: Boolean

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

    Permalink
  39. val kind: String

    Permalink

    pos

    pos

    Definition Classes
    RunnerTestInfo
  40. def lastState: TestState

    Permalink
  41. val logFile: java.io.File

    Permalink

    pos/t1234-pos.log

    pos/t1234-pos.log

    Definition Classes
    RunnerTestInfo
  42. def mixedCompileGroup(allFiles: List[java.io.File]): List[CompileRound]

    Permalink
  43. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  44. val nestUI: NestUI

    Permalink
  45. def newCompiler: DirectCompiler

    Permalink
  46. def newTestWriters(): (java.io.StringWriter, PrintWriter)

    Permalink
  47. def nextTestAction[T](body: ⇒ T)(failFn: PartialFunction[T, TestState]): T

    Permalink

    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.

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

    Permalink
  49. def nextTestActionFailing(reason: String): Boolean

    Permalink
  50. def normalizeLog(): Unit

    Permalink

    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.

  51. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  52. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  53. lazy val outDir: File

    Permalink
  54. val outFile: File

    Permalink

    pos/t1234-pos.obj

    pos/t1234-pos.obj

    Definition Classes
    RunnerTestInfo
  55. val parentFile: java.io.File

    Permalink
  56. def pushTranscript(msg: String): TestTranscript

    Permalink
  57. def run(): TestState

    Permalink
  58. def runAntTest(): (Boolean, LogContext)

    Permalink
  59. def runCommand(args: Seq[String], outFile: java.io.File): Boolean

    Permalink

    Runs command redirecting standard out and error out to output file.

    Runs command redirecting standard out and error out to output file.

    Attributes
    protected
  60. def runInContext(body: ⇒ Boolean): (Boolean, LogContext)

    Permalink

    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

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

    Permalink
  62. def runResidentTest(): (Boolean, LogContext)

    Permalink
  63. def runScalacheckTest(): (Boolean, LogContext)

    Permalink
  64. def runScalapTest(): (Boolean, LogContext)

    Permalink
  65. def runScriptTest(): (Boolean, LogContext)

    Permalink
  66. def runTestCommon(andAlso: ⇒ Boolean): (Boolean, LogContext)

    Permalink
  67. def setLastState(s: TestState): Unit

    Permalink
  68. def showCrashInfo(t: Throwable): Unit

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

    Permalink

    Source files for the given test file.

  70. val suiteRunner: SuiteRunner

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

    Permalink
    Definition Classes
    AnyRef
  72. val testFile: java.io.File

    Permalink

    pos/t1234.scala or pos/t1234 if dir

    pos/t1234.scala or pos/t1234 if dir

    Definition Classes
    RunnerTestInfo
  73. val testIdent: String

    Permalink

    pos/t1234

    pos/t1234

    Definition Classes
    RunnerTestInfo
  74. def testPrompt: String

    Permalink
  75. def toString(): String

    Permalink
    Definition Classes
    Runner → AnyRef → Any
  76. def toolArgs(tool: String, split: Boolean = true): List[String]

    Permalink
  77. def toolArgsFor(files: List[java.io.File])(tool: String, split: Boolean = true): List[String]

    Permalink
  78. def transcript: List[String]

    Permalink
  79. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from TestInfo

Inherited from AnyRef

Inherited from Any

Ungrouped