Suite

munit.Suite
abstract class Suite extends PlatformSuite

The base class for all test suites. Extend this class if you don't need the functionality in FunSuite.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait BaseFunSuite
class FunSuite

Members list

Type members

Types

final type AfterEach = AfterEach
final type BeforeEach = BeforeEach
final type Fixture[T] = Fixture[T]
final type Test = Test
final type TestValue = Future[Any]

The value produced by test bodies.

The value produced by test bodies.

Attributes

Value members

Abstract methods

def munitTests(): Seq[Test]

The base class for all test suites

The base class for all test suites

Attributes

Concrete methods

def afterAll(): Unit

Runs once after all test cases and after all suite-local fixtures have been tear down.

Runs once after all test cases and after all suite-local fixtures have been tear down.

Attributes

def afterEach(context: AfterEach): Unit

Runs after each individual test case.

Runs after each individual test case.

Attributes

def beforeAll(): Unit

Runs once before all test cases and before all suite-local fixtures are setup. An error in this method aborts the test suite.

Runs once before all test cases and before all suite-local fixtures are setup. An error in this method aborts the test suite.

Attributes

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.

Attributes

def munitExecutionContext: ExecutionContext
def munitFixtures: Seq[AnyFixture[_]]

Fixtures that can be reused for individual test cases or entire suites.

Fixtures that can be reused for individual test cases or entire suites.

Attributes