c

munit

FunSuite

abstract class FunSuite extends Suite with Assertions with TestOptionsConversions

Self Type
FunSuite
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FunSuite
  2. TestOptionsConversions
  3. Assertions
  4. Suite
  5. PlatformSuite
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new FunSuite()

Type Members

  1. final type AfterEach = GenericAfterEach[TestValue]
    Definition Classes
    Suite
  2. final type BeforeEach = GenericBeforeEach[TestValue]
    Definition Classes
    Suite
  3. class FunFixture[T] extends AnyRef
  4. final type Test = GenericTest[TestValue]
    Definition Classes
    Suite
  5. final type TestValue = Future[Any]

    The value produced by test bodies.

    The value produced by test bodies.

    Definition Classes
    FunSuiteSuite
  6. abstract class Fixture[T] extends AnyRef

    Definition Classes
    Suite

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. def afterAll(): Unit

    Runs once after all test cases and after all suite-local fixtures have been tear down.

    Runs once after all test cases and after all suite-local fixtures have been tear down.

    Definition Classes
    Suite
  5. def afterEach(context: AfterEach): Unit

    Runs after each individual test case.

    Runs after each individual test case.

    Definition Classes
    Suite
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def assert(cond: => Boolean, clue: => Any = "assertion failed")(implicit loc: Location): Unit
    Definition Classes
    Assertions
  8. def assertEquals[A, B](obtained: A, expected: B, clue: => Any = "values are not the same")(implicit loc: Location, ev: =:=[A, B]): Unit
    Definition Classes
    Assertions
  9. def assertNoDiff(obtained: String, expected: String, clue: => Any = "diff assertion failed")(implicit loc: Location): Unit
    Definition Classes
    Assertions
  10. def assertNotEquals[A, B](obtained: A, expected: B, clue: => Any = "values are the same")(implicit loc: Location, ev: =:=[A, B]): Unit
    Definition Classes
    Assertions
  11. def assume(cond: Boolean, clue: => Any = "assumption failed")(implicit loc: Location): Unit
    Definition Classes
    Assertions
  12. def beforeAll(): Unit

    Runs once before all test cases and before all suite-local fixtures are setup.

    Runs once before all test cases and before all suite-local fixtures are setup. An error in this method aborts the test suite.

    Definition Classes
    Suite
  13. def beforeEach(context: BeforeEach): Unit

    Runs before each individual test case.

    Runs before each individual test case. An error in this method aborts the test case.

    Definition Classes
    Suite
  14. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  15. def clue[T](c: Clue[T]): T
    Definition Classes
    Assertions
  16. def clues(clue: Clue[_]*): Clues
    Definition Classes
    Assertions
  17. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  19. def fail(message: String, clues: Clues = new Clues(Nil))(implicit loc: Location): Nothing
    Definition Classes
    Assertions
  20. def fail(message: String, cause: Throwable)(implicit loc: Location): Nothing
    Definition Classes
    Assertions
  21. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  22. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  24. def intercept[T <: Throwable](body: => Any)(implicit T: ClassTag[T], loc: Location): T
    Definition Classes
    Assertions
  25. def interceptMessage[T <: Throwable](expectedExceptionMessage: String)(body: => Any)(implicit T: ClassTag[T], loc: Location): T
    Definition Classes
    Assertions
  26. def isCI: Boolean
  27. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  28. def munitAnsiColors: Boolean
    Definition Classes
    Assertions
  29. def munitCaptureClues[T](thunk: => T): (T, Clues)
    Definition Classes
    Assertions
  30. def munitExecutionContext: ExecutionContext
    Definition Classes
    Suite
  31. def munitExpectFailure(options: TestOptions, body: () => Future[Any]): Future[Any]
  32. def munitFixtures: Seq[Fixture[_]]

    Functinonal fixtures that can be reused for individual test cases or entire suites.

    Functinonal fixtures that can be reused for individual test cases or entire suites.

    Definition Classes
    Suite
  33. def munitFlaky(options: TestOptions, body: () => Future[Any]): Future[Any]
  34. def munitFlakyOK: Boolean
  35. def munitIgnore: Boolean
  36. val munitLines: Lines
    Definition Classes
    Assertions
  37. def munitNewTest(test: Test): Test
  38. def munitPrint(clue: => Any): String
    Definition Classes
    Assertions
  39. def munitRunTest(options: TestOptions, body: () => Future[Any]): Future[Any]
  40. def munitTestValue(testValue: => Any): Future[Any]
  41. def munitTests(): Seq[Test]

    The base class for all test suites

    The base class for all test suites

    Definition Classes
    FunSuiteSuite
  42. val munitTestsBuffer: ArrayBuffer[Test]
  43. def munitTimeout: Duration
  44. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  45. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  46. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  47. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  48. def test(options: TestOptions)(body: => Any)(implicit loc: Location): Unit
  49. implicit def testOptionsFromString(name: String)(implicit loc: Location): TestOptions

    Implicitly create a TestOptions given a test name.

    Implicitly create a TestOptions given a test name. This allows writing test("name") { ... } even if test accepts a TestOptions

    Definition Classes
    TestOptionsConversions
  50. def toString(): String
    Definition Classes
    AnyRef → Any
  51. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  52. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  53. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  54. object FunFixture

Inherited from TestOptionsConversions

Inherited from Assertions

Inherited from Suite

Inherited from PlatformSuite

Inherited from AnyRef

Inherited from Any

Ungrouped