TestSession

A compilation module's root test suite, holding the module-wide default configuration.

A compilation module may declare at most one test session. It is the root of the test element hierarchy. The test framework's generated code invokes initializeTestFramework at module initialization time, making sure that a valid TestSession exists before instantiating any top-level TestSuite.

A custom TestSession specifying a global configuration can be declared like this:

class MyTestSession :
TestSession(
testConfig = TestConfig.coroutineContext(UnconfinedTestDispatcher()),
defaultCompartment = { TestCompartment.Concurrent }
)

Types

Link copied to clipboard
object Companion