Object

utest

TestRunner

Related Doc: package utest

Permalink

object TestRunner

Created by lihaoyi on 12/9/17.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TestRunner
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  6. def collectQueryTerminals(test: Tree[String], query: Seq[Tree[Int]], revIntPath: List[Int], revStringPath: List[String]): HTree[String, (List[String], List[Int])]

    Permalink

    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.

  7. def collectTestNodes(test: Tree[String], revIntPath: List[Int], revStringPath: List[String]): HTree[String, (List[String], List[Int])]

    Permalink

    Pick up all terminal nodes within the given test tree, so they can be executed and their results recorded.

  8. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  10. def evaluateFutureTree[N, L](t: HTree[N, () ⇒ Future[L]])(implicit ec: ExecutionContext): Future[HTree[N, L]]

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

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  16. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  17. 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)

    Permalink
  18. def resolveQueryIndices(test: Tree[String], query: Seq[Tree[String]], revStringPath: List[String]): Either[Seq[Seq[String]], Seq[Tree[Int]]]

    Permalink

    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.

  19. def run(tests: Tests, onComplete: (Seq[String], Result) ⇒ Unit = (_, _) => (), query: Seq[Tree[String]] = Nil, executor: Executor = utest.framework.Executor, ec: ExecutionContext = ...): HTree[String, Result]

    Permalink
  20. 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 = ...): HTree[String, Result]

    Permalink
  21. 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 = ...): Future[HTree[String, Result]]

    Permalink
  22. def runAsync(tests: Tests, onComplete: (Seq[String], Result) ⇒ Unit = (_, _) => (), query: Seq[Tree[String]] = Nil, executor: Executor = Executor, ec: ExecutionContext = ...): Future[HTree[String, Result]]

    Permalink

    Runs this Tree[Test] asynchronously and returns a Future containing the tree of the results.

    Runs this Tree[Test] asynchronously and returns a Future containing the tree of the results.

    onComplete

    Called each time a single Test finishes

    ec

    Used to

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

    Permalink
    Definition Classes
    AnyRef
  24. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  25. def unbox(res: Throwable): Throwable

    Permalink

    For some reason Scala futures boxes Errors into ExecutionExceptions, so un-box them to show the user since he probably doesn't care about this boxing

  26. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(): Unit

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

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped