utest

TestSuite

abstract class TestSuite extends TestSuiteMacro with Asserts[DummyTypeclass] with Formatter

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

Annotations
@JSExportDescendentObjects()
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. TestSuite
  2. Formatter
  3. Asserts
  4. TestSuiteMacro
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TestSuite()

Type Members

  1. implicit class ArrowAssert[T] extends AnyRef

    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

Abstract Value Members

  1. abstract def tests: Tree[Test]

    The tests within this object.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. macro def apply(expr: Unit): Tree[Test]

    Macro to demarcate a Tree[Test].

    Macro to demarcate a Tree[Test].

    Definition Classes
    TestSuiteMacro
  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. macro 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

    Definition Classes
    Asserts
  7. 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.

    Definition Classes
    Asserts
  8. def assertPrettyPrint[T](t: T)(implicit arg0: DummyTypeclass[T]): String

    Definition Classes
    TestSuiteAsserts
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. macro def compileError(expr: String): CompileError

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

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

    Definition Classes
    Asserts
  11. 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.

    Definition Classes
    Asserts
  12. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  14. 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.

    Definition Classes
    Asserts
  15. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def format(results: Tree[Result]): Option[String]

    Definition Classes
    Formatter
  17. def formatColor: Boolean

    Definition Classes
    Formatter
  18. def formatEndColor: String

    Definition Classes
    Formatter
  19. def formatSingle(path: Seq[String], r: Result): Option[String]

    Definition Classes
    Formatter
  20. def formatStartColor(success: Boolean): String

    Definition Classes
    Formatter
  21. def formatTrace: Boolean

    Definition Classes
    Formatter
  22. def formatTruncate: Int

    Definition Classes
    TestSuiteFormatter
  23. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  24. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  25. 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.

    Definition Classes
    Asserts
  26. final def isInstanceOf[T0]: Boolean

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

    Definition Classes
    AnyRef
  28. final def notify(): Unit

    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

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

    Definition Classes
    Asserts
    Annotations
    @tailrec()
  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  32. def toString(): String

    Definition Classes
    AnyRef → Any
  33. def utestTruncateLength: Int

  34. def utestWrap(runBody: ⇒ Future[Any])(implicit ec: ExecutionContext): Future[Any]

  35. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long, arg1: Int): Unit

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Formatter

Inherited from Asserts[DummyTypeclass]

Inherited from TestSuiteMacro

Inherited from AnyRef

Inherited from Any

Ungrouped