utest

package utest

Created by haoyi on 1/24/14.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. utest
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. case class AssertionError(msg: String, captured: Seq[LoggedValue], cause: Throwable = null) extends java.lang.AssertionError with Product with Serializable

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

  2. trait CompileError extends AnyRef

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

  3. class DefaultFormatter extends Formatter

    Default implementation of Formatter, also used by the default SBT test framework.

  4. abstract class Formatter extends AnyRef

    Represents something that can format a single test result or a Tree of them.

  5. case class LoggedValue(name: String, tpeName: String, value: Any) extends Product with Serializable

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

  6. case class NoSuchTestException(path: String*) extends Exception with Product with Serializable

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

  7. case class SkippedOuterFailure(errorPath: Seq[String], outerError: Throwable) extends Exception with Product with Serializable

  8. type TestSuite = utest.framework.TestSuite

  9. implicit class TestableString extends AnyRef

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

  10. implicit class TestableSymbol extends AnyRef

Value Members

  1. object *

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

  2. object CompileError

  3. object DefaultFormatter

  4. object ExecutionContext

  5. object PlatformShims

    Platform specific stuff that differs between JVM and JS

  6. object ScalaVersionStubs

  7. val TestSuite: utest.framework.TestSuite.type

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

    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

    Annotations
    @macroImpl( ... )
  9. def assertMatch(t: Any)(pf: PartialFunction[Any, Unit]): Unit

    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.

    Annotations
    @macroImpl( ... )
  10. package asserts

    Macro powered asserts of all shapes and sizes.

  11. def compileError(expr: String): CompileError

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

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

    Annotations
    @macroImpl( ... )
  12. def continually(exprs: Boolean*): Unit

    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.

    Annotations
    @macroImpl( ... )
  13. def eventually(exprs: Boolean*): Unit

    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.

    Annotations
    @macroImpl( ... )
  14. package framework

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

    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.

    Annotations
    @macroImpl( ... )
  16. implicit val retryInterval: RetryInterval

  17. implicit val retryMax: RetryMax

  18. def runSuite(suite: TestSuite, path: Seq[String], args: Array[String], addCount: (Boolean) ⇒ Unit, log: (String) ⇒ Unit, logFailure: (String, Throwable) ⇒ Unit, addTotal: (String) ⇒ Unit): Future[String]

  19. package runner

  20. implicit def toTestSeq(t: Tree[Test]): TestTreeSeq

    Extension methods on Tree[Test] in order to conveniently run the tests and aggregate the results

  21. package util

Inherited from AnyRef

Inherited from Any

Ungrouped