TestRunProfile class
A TestRunProfile describes one way to execute tests in a {@link TestController}.
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
- @anonymous
Constructors
-
TestRunProfile({String? label, TestRunProfileKind? kind, bool? isDefault, bool? supportsContinuousRun, TestTag? tag, void configureHandler()?, FutureOr<
void> runHandler(TestRunRequest, CancellationToken)?, void dispose()?}) -
factory
Properties
- configureHandler ↔ void Function()?
-
Available on TestRunProfile, provided by the TestRunProfile$Typings extension
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()
-
Available on TestRunProfile, provided by the TestRunProfile$Typings extension
getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- isDefault ↔ bool
-
Available on TestRunProfile, provided by the TestRunProfile$Typings extension
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
-
Available on TestRunProfile, provided by the TestRunProfile$Typings extension
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
-
Available on TestRunProfile, provided by the TestRunProfile$Typings extension
Label shown to the user in the UI.getter/setter pair -
runHandler
↔ FutureOr<
void> Function(TestRunRequest, CancellationToken) -
Available on TestRunProfile, provided by the TestRunProfile$Typings extension
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 - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- supportsContinuousRun ↔ bool
-
Available on TestRunProfile, provided by the TestRunProfile$Typings extension
Whether this profile supports continuous running of requests. If so, then {@link TestRunRequest.continuous} may be set totrue
. Defaults to false.getter/setter pair - tag ↔ TestTag?
-
Available on TestRunProfile, provided by the TestRunProfile$Typings extension
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
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited