Fixture
Fixture 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 Fixture[T]
or
AnyFixture[T]
. The only difference is that an IDE will auto-complete Unit
in the result type instead of Any
.
- Value parameters:
- fixtureName
The name of this fixture, used for displaying an error message if
beforeAll()
orafterAll()
fail.
- See also:
Value members
Concrete methods
Inherited methods
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.
- Inherited from:
- AnyFixture