TestController$Typings extension

on

Properties

createRunProfile TestRunProfile Function(String, TestRunProfileKind, FutureOr<void> (TestRunRequest, CancellationToken), [bool?, TestTag?, bool?])

Available on TestController, provided by the TestController$Typings extension

getter/setter pair
createTestItem TestItem Function(String, String, [Uri?])

Available on TestController, provided by the TestController$Typings extension

getter/setter pair
createTestRun TestRun Function(TestRunRequest, [String?, bool?])

Available on TestController, provided by the TestController$Typings extension

getter/setter pair
dispose ↔ void Function()

Available on TestController, provided by the TestController$Typings extension

getter/setter pair
id String

Available on TestController, provided by the TestController$Typings extension

The id of the controller passed in {@link tests.createTestController}. This must be globally unique.
no setter
invalidateTestResults ↔ void Function([Object?])

Available on TestController, provided by the TestController$Typings extension

getter/setter pair
items TestItemCollection

Available on TestController, provided by the TestController$Typings extension

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

Available on TestController, provided by the TestController$Typings extension

Human-readable label for the test controller.
getter/setter pair
refreshHandler FutureOr<void> Function(CancellationToken)?

Available on TestController, provided by the TestController$Typings extension

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?])?

Available on TestController, provided by the TestController$Typings extension

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