FrameworkAdapter
Serves as a bridge to a testing framework.
The tests structure is defined using internal functions suite and test, which delegate to corresponding 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() {...});
});
Content copied to clipboard
Since Kotlin
1.1Serves as a bridge to a testing framework.
The tests structure is defined using internal functions suite and test, which delegate to corresponding functions of a FrameworkAdapter. Sample test layout:
suite("top-level-package1", ignored = false) {
suite("TestClass1", ignored = false) {
suite("a subsuite", ignored = false) {
test("a test", ignored = false) {...}
test("an ignored/pending test", ignored = true) {...}
}
suite("an ignored/pending test", ignored = true) {...}
}
}
Content copied to clipboard
Since Kotlin
1.8Serves as a bridge to a testing framework.
The tests structure is defined using internal functions suite and test, which delegate to corresponding functions of a FrameworkAdapter. Sample test layout:
suite("top-level-package1", ignored = false) {
suite("TestClass1", ignored = false) {
suite("a subsuite", ignored = false) {
test("a test", ignored = false) {...}
test("an ignored/pending test", ignored = true) {...}
}
suite("an ignored/pending test", ignored = true) {...}
}
}
Content copied to clipboard