Class

munit

FutureFixture

Related Doc: package munit

Permalink

abstract class FutureFixture[T] extends AnyFixture[T]

FutureFixture allows you to acquire resources during setup and clean up resources after the tests finish running.

Fixtures can be local to a single test case by overriding beforeEach and afterEach, or they can be re-used for an entire test suite by extending beforeAll and afterAll.

There is no functional difference between extending FutureFixture[T] or AnyFixture[T]. The only difference is that an IDE will auto-complete Future[Unit] in the result type instead of Any.

See also

https://scalameta.org/munit/docs/fixtures.html

Linear Supertypes
AnyFixture[T], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FutureFixture
  2. AnyFixture
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FutureFixture(name: String)

    Permalink

Abstract Value Members

  1. abstract def apply(): T

    Permalink

    The value produced by this suite-local fixture that can be reused for all test cases.

    The value produced by this suite-local fixture that can be reused for all test cases.

    Definition Classes
    AnyFixture

Concrete Value Members

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def afterAll(): Future[Unit]

    Permalink

    Runs once after the test suite has finished, regardless if the tests failed or not.

    Runs once after the test suite has finished, regardless if the tests failed or not.

    Definition Classes
    FutureFixtureAnyFixture
  5. def afterEach(context: AfterEach): Future[Unit]

    Permalink

    Runs after each individual test case.

    Runs after each individual test case.

    Definition Classes
    FutureFixtureAnyFixture
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def beforeAll(): Future[Unit]

    Permalink

    Runs once before the test suite starts

    Runs once before the test suite starts

    Definition Classes
    FutureFixtureAnyFixture
  8. def beforeEach(context: BeforeEach): Future[Unit]

    Permalink

    Runs before each individual test case.

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

    Definition Classes
    FutureFixtureAnyFixture
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. val fixtureName: String

    Permalink

    The name of this fixture, used for displaying an error message if beforeAll() or afterAll() fail.

    The name of this fixture, used for displaying an error message if beforeAll() or afterAll() fail.

    Definition Classes
    AnyFixture
  14. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyFixture[T]

Inherited from AnyRef

Inherited from Any

Ungrouped