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.
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.
Runs after each individual test case.
Runs after each individual test case.
Runs once before the test suite starts
Runs once before the test suite starts
Runs before each individual test case.
Runs before each individual test case. An error in this method aborts the test case.
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.
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
andafterEach
, or they can be re-used for an entire test suite by extendingbeforeAll
andafterAll
.There is no functional difference between extending
FutureFixture[T]
orAnyFixture[T]
. The only difference is that an IDE will auto-completeFuture[Unit]
in the result type instead ofAny
.https://scalameta.org/munit/docs/fixtures.html