Fixture

abstract class Fixture[T](val fixtureName: String)
Value Params
name

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

class Object
trait Matchable
class Any

Value members

Abstract methods

def apply(): T

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.

Concrete methods

def afterAll(): Unit

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.

def afterEach(context: AfterEach): Unit

Runs after each individual test case.

Runs after each individual test case.

def beforeAll(): Unit

Runs once before the test suite starts

Runs once before the test suite starts

def beforeEach(context: BeforeEach): Unit

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

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

Concrete fields

val fixtureName: String