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

Methods

def afterAll(): Unit

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.

def apply(): T

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

def beforeAll(): Unit

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.

Fields

val fixtureName: String