object TestRunner
Created by lihaoyi on 12/9/17.
- Alphabetic
- By Inheritance
- TestRunner
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def collectQueryTerminals(test: Tree[String], query: Seq[Tree[Int]], revIntPath: List[Int], revStringPath: List[String]): HTree[String, (List[String], List[Int])]
Recurses into the test tree using a pre-resolveQueryIndicesed query tree, going straight to the terminal nodes of the query tree before handing over to collectTestNodes to collect all the tests within those nodes.
- def collectTestNodes(test: Tree[String], revIntPath: List[Int], revStringPath: List[String]): HTree[String, (List[String], List[Int])]
Pick up all terminal nodes within the given test tree, so they can be executed and their results recorded.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def evaluateFutureTree[N, L](t: HTree[N, () => Future[L]])(implicit ec: ExecutionContext): Future[HTree[N, L]]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def renderResults(results: Seq[(String, HTree[String, Result])], formatter: Formatter = Formatter, showSummaryThreshold: Int = 30, resultsHeader: String = DefaultFormatters.resultsHeader, failureHeader: String = DefaultFormatters.failureHeader): (Str, Int, Int)
- def resolveQueryIndices(test: Tree[String], query: Seq[Tree[String]], revStringPath: List[String]): Either[Seq[Seq[String]], Seq[Tree[Int]]]
Takes a query tree and resolves the strings against the test tree of a test suite, either returning the query trees strings converted into integer indices into the test tree, or the list of paths which the query tree tried to access but did not exist.
- def run(tests: Tests, onComplete: (Seq[String], Result) => Unit = (_, _) => (), query: Seq[Tree[String]] = Nil, executor: Executor = utest.framework.Executor, ec: ExecutionContext = utest.framework.ExecutionContext.RunNow): HTree[String, Result]
- def runAndPrint(tests: Tests, label: String, query: Seq[Tree[String]] = Nil, printStream: PrintStream = System.out, executor: Executor = Executor, formatter: Formatter = utest.framework.Formatter, ec: ExecutionContext = utest.framework.ExecutionContext.RunNow): HTree[String, Result]
- def runAndPrintAsync(tests: Tests, label: String, query: Seq[Tree[String]] = Nil, printStream: PrintStream = System.out, executor: Executor = Executor, formatter: Formatter = utest.framework.Formatter, ec: ExecutionContext = utest.framework.ExecutionContext.RunNow): Future[HTree[String, Result]]
- def runAsync(tests: Tests, onComplete: (Seq[String], Result) => Unit = (_, _) => (), query: Seq[Tree[String]] = Nil, executor: Executor = Executor, ec: ExecutionContext = utest.framework.ExecutionContext.RunNow): Future[HTree[String, Result]]
Runs this
Tree[Test]
asynchronously and returns aFuture
containing the tree of the results.Runs this
Tree[Test]
asynchronously and returns aFuture
containing the tree of the results.- onComplete
Called each time a single Test finishes
- ec
Used to
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def unbox(res: Throwable): Throwable
For some reason Scala futures boxes
Error
s intoExecutionException
s, so un-box them to show the user since he probably doesn't care about this boxing - final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])