FrameworkAdapter

external interface FrameworkAdapter (source)

Platform and version requirements: JS

Serves as a bridge to a testing framework.

The tests structure is defined using internal functions suite and test, which delegate to correspoding functions of a FrameworkAdapter. Sample test layout:

suite('a suite', false, function() { suite('a subsuite', false, function() { test('a test', false, function() {...}); test('an ignored/pending test', true, function() {...}); }); suite('an ignored/pending test', true, function() {...}); });

Functions

suite

abstract fun suite(
    name: String,
    ignored: Boolean,
    suiteFn: () -> Unit
): Unit

Declares a test suite.

test

abstract fun test(
    name: String,
    ignored: Boolean,
    testFn: () -> Unit
): Unit

Declares a test.