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. class DefaultFormatter extends Formatter

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

    Default implementation of Formatter, also used by the default SBT test framework. Allows some degree of customization of the formatted test results.

  3. abstract class Formatter extends AnyRef

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

  4. 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

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

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

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

  7. type TestSuite = utest.framework.TestSuite

  8. implicit class TestableString extends AnyRef

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

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

  9. implicit class TestableSymbol extends AnyRef

Value Members

  1. val ClassTag: scala.reflect.ClassTag.type

  2. object DefaultFormatter

  3. object ExecutionContext

  4. object PlatformShims

    Platform specific stuff that differs between JVM and JS

    Platform specific stuff that differs between JVM and JS

    Annotations
    @JSExport()
  5. object SkippedOuterFailure extends Serializable

  6. val TestSuite: utest.framework.TestSuite.type

  7. macro def assert(exprs: Boolean*): Unit

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

  8. macro 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.

  9. package asserts

    Macro powered asserts of all shapes and sizes.

    Macro powered asserts of all shapes and sizes. These asserts all use macros to capture the names, types and values of variables used within them, so you get nice error messages for free.

  10. macro 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.

  11. macro 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.

  12. package framework

  13. macro 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.

  14. implicit val retryInterval: RetryInterval

  15. implicit val retryMax: RetryMax

  16. def runSuite(suite: TestSuite, path: Array[String], args: Array[String], addCount: (String) ⇒ Unit, log: (String) ⇒ Unit, logFailure: (String) ⇒ Unit, addTotal: (String) ⇒ Unit): String

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

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

  18. package util

Inherited from AnyRef

Inherited from Any

Ungrouped