FrameworkAdapter

JS
1.1
interface FrameworkAdapter

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

JS
1.1

suite

Declares a test suite.

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

test

Declares a test.

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