Suite

@RunWith(scala.Predef.classOf[munit.MUnitRunner]) abstract class Suite extends PlatformSuite

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

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

class Object
trait Matchable
class Any
class FunSuite

Type members

Classlikes

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.

Types

final type Test = GenericTest[TestValue]
type TestValue

The value produced by test bodies.

The value produced by test bodies.

Value members

Abstract methods

def munitTests(): Seq[Test]

The base class for all test suites

The base class for all test suites

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.

def afterEach(context: AfterEach): Unit

Runs after each individual test case.

Runs after each individual test case.

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.

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.

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

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

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