TestRunProfile$Typings extension
Properties
-
configureHandler
↔ void Function()?
-
If this method is present, a configuration gear will be present in the
UI, and this method will be invoked when it's clicked. When called,
you can take other editor actions, such as showing a quick pick or
opening a configuration file.
getter/setter pair
-
dispose
↔ void Function()
-
getter/setter pair
-
isDefault
↔ bool
-
Controls whether this profile is the default action that will
be taken when its kind is actioned. For example, if the user clicks
the generic "run all" button, then the default profile for
{@link TestRunProfileKind.Run} will be executed, although the
user can configure this.
getter/setter pair
-
kind
→ TestRunProfileKind
-
Configures what kind of execution this profile controls. If there
are no profiles for a kind, it will not be available in the UI.
no setter
-
label
↔ String
-
Label shown to the user in the UI.
getter/setter pair
-
runHandler
↔ FutureOr<void> Function(TestRunRequest, CancellationToken)
-
Handler called to start a test run. When invoked, the function should call
{@link TestController.createTestRun} at least once, and all test runs
associated with the request should be created before the function returns
or the returned promise is resolved.
getter/setter pair
-
supportsContinuousRun
↔ bool
-
Whether this profile supports continuous running of requests. If so,
then {@link TestRunRequest.continuous} may be set to
true
. Defaults
to false.
getter/setter pair
-
tag
↔ TestTag?
-
Associated tag for the profile. If this is set, only {@link TestItem}
instances with the same tag will be eligible to execute in this profile.
getter/setter pair