class Runner extends TestInfo
Run a single test. Rubber meets road.
- Alphabetic
- By Inheritance
- Runner
- TestInfo
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Runner(testFile: java.io.File, suiteRunner: SuiteRunner, nestUI: NestUI)
Type Members
- abstract class CompileRound extends AnyRef
- case class OnlyJava (fs: List[java.io.File]) extends CompileRound with Product with Serializable
- case class OnlyScala (fs: List[java.io.File]) extends CompileRound with Product with Serializable
- type RanOneTest = (Boolean, LogContext)
- case class ScalaAndJava (fs: List[java.io.File]) extends CompileRound with Product with Serializable
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def ant(args: Seq[String], output: java.io.File): Boolean
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def attemptCompile(sources: List[java.io.File]): TestState
- val checkFile: File
- def cleanup(): Unit
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def compilationRounds(file: java.io.File): List[CompileRound]
-
def
crashHandler: PartialFunction[Throwable, TestState]
- Attributes
- protected
- def currentDiff: String
- def diffIsOk: Boolean
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def extraClasspath: collection.immutable.List[nsc.io.File]
- def extraJavaOptions: Array[String]
- def fail(what: Any): Boolean
- val fileBase: String
- 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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- val flagsFile: File
- def flagsForCompilation(sources: List[java.io.File]): List[String]
- def genCrash(caught: Throwable): Crash
- def genFail(reason: String): Fail
- def genPass(): Pass
- def genTimeout(): Fail
- def genUpdated(): Updated
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- def gitDiff(f1: java.io.File, f2: java.io.File): Option[String]
- val gitDiffOptions: String
- val gitRunner: Option[java.io.File]
-
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
- def isEnumeratedTest: Boolean
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def javac(files: List[java.io.File]): TestState
- val kind: String
- def lastState: TestState
- val logFile: java.io.File
- def mixedCompileGroup(allFiles: List[java.io.File]): List[CompileRound]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val nestUI: NestUI
- def newCompiler: DirectCompiler
- def newTestWriters(): (java.io.StringWriter, PrintWriter)
-
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.
- def nextTestActionExpectTrue(reason: String, body: ⇒ Boolean): Boolean
- def nextTestActionFailing(reason: String): Boolean
-
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
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- lazy val outDir: File
- val outFile: File
- val parentFile: java.io.File
- def pushTranscript(msg: String): TestTranscript
- def run(): TestState
- def runAntTest(): (Boolean, LogContext)
-
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
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
- def runNegTest(): (Boolean, LogContext)
- def runResidentTest(): (Boolean, LogContext)
- def runScalacheckTest(): (Boolean, LogContext)
- def runScalapTest(): (Boolean, LogContext)
- def runScriptTest(): (Boolean, LogContext)
- def runTestCommon(andAlso: ⇒ Boolean): (Boolean, LogContext)
- def setLastState(s: TestState): Unit
- def showCrashInfo(t: Throwable): Unit
-
def
sources(file: java.io.File): List[java.io.File]
Source files for the given test file.
- val suiteRunner: SuiteRunner
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val testFile: java.io.File
- val testIdent: String
- def testPrompt: String
-
def
toString(): String
- Definition Classes
- Runner → AnyRef → Any
- def toolArgs(tool: String, split: Boolean = true): List[String]
- def toolArgsFor(files: List[java.io.File])(tool: String, split: Boolean = true): List[String]
- def transcript: List[String]
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )