Package

utest

Permalink

package utest

Created by haoyi on 1/24/14.

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

Type Members

  1. implicit class ArrowAssert extends AnyRef

    Permalink

    Provides a nice syntax for asserting things are equal, that is pretty enough to embed in documentation and examples

    Provides a nice syntax for asserting things are equal, that is pretty enough to embed in documentation and examples

    Definition Classes
    Asserts
  2. case class AssertionError(msgPrefix: String, captured: Seq[TestValue], cause: Throwable = null) extends java.lang.AssertionError with Product with Serializable

    Permalink

    A special AssertionError thrown by utest's macro-powered asserts that contains metadata about local variables used in the assert expression.

  3. trait CompileError extends AnyRef

    Permalink

    Simplified versions of the errors thrown during compilation, for use with the utest.asserts.Asserts.compileError macro.

    Simplified versions of the errors thrown during compilation, for use with the utest.asserts.Asserts.compileError macro. Contains only a single message and no position since things compiled using macros don't really have source positions.

  4. case class NoSuchTestException(path: Seq[String]*) extends Exception with Product with Serializable

    Permalink

    Indicates that there was no test to run at the path you provided

  5. case class QueryParseError(input: String, msg: String) extends Exception with Product with Serializable

    Permalink
  6. type Show = utest.asserts.Show

    Permalink
  7. class TestQueryParser extends AnyRef

    Permalink

    Parses query strings.

    Parses query strings.

    Fastparse grammar:

    val quoted: P[String] = P("\"" ~/ CharsWhile(_ != '"').! ~ "\"") val ident: P[String] = P(CharIn('a' to 'z', 'A' to 'Z', "_-").rep(1).!) val item: P[String] = P(quoted | ident) val chain: P[Any] = P(item.rep(1, sep="." ~/) ~ ("." ~/ parseCurlies).?) val commas: P[Any] = P(chain.rep(1, sep=","~/)) val curlies: P[Any] = P(commas | "{" ~/ curlies ~ "}")

    But here written manually to avoid the dependency on FastParse.

  8. abstract class TestSuite extends Executor

    Permalink

    Marker class used to mark an object as something containing tests.

    Marker class used to mark an object as something containing tests. Used for test-discovery by SBT.

    Annotations
    @EnableReflectiveInstantiation()
  9. case class TestValue(name: String, tpeName: String, value: Any) extends Product with Serializable

    Permalink

    Information about a value that was logged in one of the macro-powered assert functions

  10. implicit class TestableString extends AnyRef

    Permalink

    Extension methods to allow you to create tests via the "omg"-{ ...

    Extension methods to allow you to create tests via the "omg"-{ ... } syntax.

    Annotations
    @compileTimeOnly( ... )
  11. implicit class TestableSymbol extends AnyRef

    Permalink
    Annotations
    @compileTimeOnly( ... )
  12. case class Tests(nameTree: Tree[String], callTree: TestCallTree) extends Product with Serializable

    Permalink

    Represents a single hierarchy of tests, arranged in a tree structure, with every node having a name and an associated executable test.

    Represents a single hierarchy of tests, arranged in a tree structure, with every node having a name and an associated executable test.

    The two hierarchies are parallel: thus you can inspect the nameTree to browse the test listing without running anything, and once you decide which test to run you can feed the List[Int] path of that test in the nameTree into the callTree to execute it and return the result.

Value Members

  1. object *

    Permalink

    Placeholder object used to declare test cases which you don't want to bother naming.

    Placeholder object used to declare test cases which you don't want to bother naming. These test cases are named with sequential numbers starting from "0", "1", "2", etc.

  2. object CompileError

    Permalink
  3. object PlatformShims

    Permalink

    Platform specific stuff that differs between JVM and JS

  4. object TestQueryParser

    Permalink
  5. object TestRunner

    Permalink

    Created by lihaoyi on 12/9/17.

  6. object TestSuite

    Permalink
  7. object Tests extends Serializable

    Permalink
  8. macro def assert(exprs: Boolean*): Unit

    Permalink

    Checks that one or more expressions are true; otherwises raises an exception with some debugging info

    Checks that one or more expressions are true; otherwises raises an exception with some debugging info

    Definition Classes
    Asserts
  9. macro def assertMatch(t: Any)(pf: PartialFunction[Any, Unit]): Unit

    Permalink

    Asserts that the given value matches the PartialFunction.

    Asserts that the given value matches the PartialFunction. Useful for using pattern matching to validate the shape of a data structure.

    Definition Classes
    Asserts
  10. package asserts

    Permalink
  11. macro def compileError(expr: String): CompileError

    Permalink

    Asserts that the given expression fails to compile, and returns a utest.CompileError containing the message of the failure.

    Asserts that the given expression fails to compile, and returns a utest.CompileError containing the message of the failure. If the expression compile successfully, this macro itself will raise a compilation error.

    Definition Classes
    Asserts
  12. macro def continually(exprs: Boolean*): Unit

    Permalink

    Checks that one or more expressions all remain true within a certain period of time.

    Checks that one or more expressions all remain true within a certain period of time. Polls at a regular interval to check this.

    Definition Classes
    Asserts
  13. macro def eventually(exprs: Boolean*): Unit

    Permalink

    Checks that one or more expressions all become true within a certain period of time.

    Checks that one or more expressions all become true within a certain period of time. Polls at a regular interval to check this.

    Definition Classes
    Asserts
  14. package framework

    Permalink
  15. macro def intercept[T](exprs: Unit)(implicit arg0: ClassTag[T]): T

    Permalink

    Asserts that the given block raises the expected exception.

    Asserts that the given block raises the expected exception. The exception is returned if raised, and an AssertionError is raised if the expected exception does not appear.

    Definition Classes
    Asserts
  16. final def retry[T](n: Int)(body: ⇒ T): T

    Permalink
    Definition Classes
    Asserts
    Annotations
    @tailrec()
  17. implicit val retryInterval: RetryInterval

    Permalink
  18. implicit val retryMax: RetryMax

    Permalink
  19. package runner

    Permalink
  20. package ufansi

    Permalink

Inherited from Asserts

Inherited from AnyRef

Inherited from Any

Ungrouped