t

munit

BaseFunSuite

trait BaseFunSuite extends Suite with Assertions with FunFixtures with TestOptionsConversions with TestTransforms with SuiteTransforms with ValueTransforms

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BaseFunSuite
  2. ValueTransforms
  3. SuiteTransforms
  4. TestTransforms
  5. TestOptionsConversions
  6. FunFixtures
  7. Assertions
  8. CompileErrorMacro
  9. Suite
  10. PlatformSuite
  11. AnyRef
  12. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. final type AfterEach = munit.AfterEach
    Definition Classes
    Suite
  2. final type BeforeEach = munit.BeforeEach
    Definition Classes
    Suite
  3. final type Fixture[T] = munit.Fixture[T]
    Definition Classes
    Suite
  4. final type Test = munit.Test
    Definition Classes
    Suite
  5. final type TestValue = Future[Any]

    The value produced by test bodies.

    The value produced by test bodies.

    Definition Classes
    Suite
  6. class FunFixture[T] extends AnyRef
    Definition Classes
    FunFixtures
  7. final class SuiteTransform extends (List[BaseFunSuite.Test]) => List[BaseFunSuite.Test]
    Definition Classes
    SuiteTransforms
  8. final class TestTransform extends (BaseFunSuite.Test) => BaseFunSuite.Test
    Definition Classes
    TestTransforms
  9. final class ValueTransform extends (Any) => Option[Future[Any]]
    Definition Classes
    ValueTransforms

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, compare: Compare[A, B]): Unit

    Asserts that two elements are equal according to the Compare[A, B] type-class.

    Asserts that two elements are equal according to the Compare[A, B] type-class.

    By default, uses == to compare values.

    Definition Classes
    Assertions
  9. def assertEqualsDouble(obtained: Double, expected: Double, delta: Double, clue: => Any = "values are not the same")(implicit loc: Location): Unit

    Asserts that two doubles are equal to within a positive delta.

    Asserts that two doubles are equal to within a positive delta. If the expected value is infinity then the delta value is ignored. NaNs are considered equal: assertEquals(Double.NaN, Double.NaN, *) passes.

    Definition Classes
    Assertions
  10. def assertEqualsFloat(obtained: Float, expected: Float, delta: Float, clue: => Any = "values are not the same")(implicit loc: Location): Unit

    Asserts that two floats are equal to within a positive delta.

    Asserts that two floats are equal to within a positive delta. If the expected value is infinity then the delta value is ignored. NaNs are considered equal: assertEquals(Float.NaN, Float.NaN, *) passes.

    Definition Classes
    Assertions
  11. def assertNoDiff(obtained: String, expected: String, clue: => Any = "diff assertion failed")(implicit loc: Location): Unit
    Definition Classes
    Assertions
  12. def assertNotEquals[A, B](obtained: A, expected: B, clue: => Any = "values are the same")(implicit loc: Location, compare: Compare[A, B]): Unit

    Asserts that two elements are not equal according to the Compare[A, B] type-class.

    Asserts that two elements are not equal according to the Compare[A, B] type-class.

    By default, uses == to compare values.

    Definition Classes
    Assertions
  13. def assume(cond: Boolean, clue: => Any = "assumption failed")(implicit loc: Location): Unit
    Definition Classes
    Assertions
  14. 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
  15. 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
  16. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  17. def clue[T](c: Clue[T]): T
    Definition Classes
    Assertions
  18. def clues(clue: Clue[_]*): Clues
    Definition Classes
    Assertions
  19. macro def compileErrors(code: String): String
    Definition Classes
    CompileErrorMacro
  20. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  22. def fail(message: String, clues: Clues = new Clues(Nil))(implicit loc: Location): Nothing

    Unconditionally fails this test with the given message and optional clues.

    Unconditionally fails this test with the given message and optional clues.

    Definition Classes
    Assertions
  23. def fail(message: String, cause: Throwable)(implicit loc: Location): Nothing

    Unconditionally fails this test with the given message and exception marked as the cause.

    Unconditionally fails this test with the given message and exception marked as the cause.

    Definition Classes
    Assertions
  24. def failComparison(message: String, obtained: Any, expected: Any, clues: Clues = new Clues(Nil))(implicit loc: Location): Nothing

    Unconditionally fails this test due to result of comparing two values.

    Unconditionally fails this test due to result of comparing two values.

    The only reason to use this method instead of fail() is if you want to allow comparing the two different values in the the IntelliJ GUI diff viewer.

    Definition Classes
    Assertions
  25. def failSuite(message: String, clues: Clues = new Clues(Nil))(implicit loc: Location): Nothing

    Unconditionally fail this test case and cancel all the subsequent tests in this suite.

    Unconditionally fail this test case and cancel all the subsequent tests in this suite.

    Definition Classes
    Assertions
  26. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  27. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  28. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  29. def intercept[T <: Throwable](body: => Any)(implicit T: ClassTag[T], loc: Location): T

    Evalutes the given expression and asserts that an exception of type T is thrown.

    Evalutes the given expression and asserts that an exception of type T is thrown.

    Definition Classes
    Assertions
  30. def interceptMessage[T <: Throwable](expectedExceptionMessage: String)(body: => Any)(implicit T: ClassTag[T], loc: Location): T

    Evalutes the given expression and asserts that an exception of type T with the expected message is thrown.

    Evalutes the given expression and asserts that an exception of type T with the expected message is thrown.

    Definition Classes
    Assertions
  31. def isCI: Boolean
    Definition Classes
    SuiteTransforms
  32. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  33. def munitAnsiColors: Boolean
    Definition Classes
    Assertions
  34. def munitAppendToFailureMessage(buildSuffix: (Test) => Option[String]): TestTransform

    Optionally augment a failure with additional information.

    Optionally augment a failure with additional information.

    Failures that are not FailExceptionLike subclasses will be wrapped, if needed.

    Definition Classes
    TestTransforms
  35. def munitCaptureClues[T](thunk: => T): (T, Clues)
    Definition Classes
    Assertions
  36. def munitExecutionContext: ExecutionContext
    Definition Classes
    Suite
  37. final def munitFailTransform: TestTransform
    Definition Classes
    TestTransforms
  38. def munitFixtures: Seq[AnyFixture[_]]

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

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

    Definition Classes
    Suite
  39. def munitFlakyOK: Boolean
    Definition Classes
    TestTransforms
  40. final def munitFlakyTransform: TestTransform
    Definition Classes
    TestTransforms
  41. final def munitFutureTransform: ValueTransform
    Definition Classes
    ValueTransforms
  42. def munitIgnore: Boolean
    Definition Classes
    SuiteTransforms
  43. final def munitIgnoreSuiteTransform: SuiteTransform
    Definition Classes
    SuiteTransforms
  44. val munitLines: Lines
    Definition Classes
    Assertions
  45. final def munitOnlySuiteTransform: SuiteTransform
    Definition Classes
    SuiteTransforms
  46. def munitPrint(clue: => Any): String
    Definition Classes
    Assertions
  47. final def munitSuiteTransform(tests: List[Test]): List[Test]
    Definition Classes
    SuiteTransforms
  48. def munitSuiteTransforms: List[SuiteTransform]
    Definition Classes
    SuiteTransforms
  49. final def munitTestTransform(test: Test): Test
    Definition Classes
    TestTransforms
  50. def munitTestTransforms: List[TestTransform]
    Definition Classes
    TestTransforms
  51. def munitTests(): Seq[Test]

    The base class for all test suites

    The base class for all test suites

    Definition Classes
    BaseFunSuiteSuite
  52. final val munitTestsBuffer: ListBuffer[Test]
  53. def munitTimeout: Duration
  54. final def munitValueTransform(testValue: => Any): Future[Any]
    Definition Classes
    ValueTransforms
  55. def munitValueTransforms: List[ValueTransform]
    Definition Classes
    ValueTransforms
  56. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  57. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  58. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  59. def printer: Printer
    Definition Classes
    Assertions
  60. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  61. def test(options: TestOptions)(body: => Any)(implicit loc: Location): Unit
  62. def test(name: String)(body: => Any)(implicit loc: Location): Unit
  63. 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
  64. def toString(): String
    Definition Classes
    AnyRef → Any
  65. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  66. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  67. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  68. object FunFixture
    Definition Classes
    FunFixtures

Inherited from ValueTransforms

Inherited from SuiteTransforms

Inherited from TestTransforms

Inherited from TestOptionsConversions

Inherited from FunFixtures

Inherited from Assertions

Inherited from CompileErrorMacro

Inherited from Suite

Inherited from PlatformSuite

Inherited from AnyRef

Inherited from Any

Ungrouped