TestController$Typings extension
Properties
-
createRunProfile
↔ TestRunProfile Function(String, TestRunProfileKind, FutureOr<void> (TestRunRequest, CancellationToken), [bool?, TestTag?, bool?])
-
getter/setter pair
-
createTestItem
↔ TestItem Function(String, String, [Uri?])
-
getter/setter pair
-
createTestRun
↔ TestRun Function(TestRunRequest, [String?, bool?])
-
getter/setter pair
-
dispose
↔ void Function()
-
getter/setter pair
-
id
→ String
-
The id of the controller passed in {@link tests.createTestController}.
This must be globally unique.
no setter
-
invalidateTestResults
↔ void Function([Object?])
-
getter/setter pair
-
items
→ TestItemCollection
-
A collection of "top-level" {@link TestItem} instances, which can in
turn have their own {@link TestItem.childrenchildren} to form the
"test tree."
no setter
-
label
↔ String
-
Human-readable label for the test controller.
getter/setter pair
-
refreshHandler
↔ FutureOr<void> Function(CancellationToken)?
-
If this method is present, a refresh button will be present in the
UI, and this method will be invoked when it's clicked. When called,
the extension should scan the workspace for any new, changed, or
removed tests.
getter/setter pair
-
resolveHandler
↔ FutureOr<void> Function([TestItem?])?
-
A function provided by the extension that the editor may call to request
children of a test item, if the {@link TestItem.canResolveChildren} is
true
. When called, the item should discover children and call
{@link TestController.createTestItem} as children are discovered.
getter/setter pair