A TestRunProfile describes one way to execute tests in a {@link TestController }.
A TestRunProfile describes one way to execute tests in a {@link TestController }.
(configure-handler test-run-profile)
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.
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.
(default? test-run-profile)
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.
Changes the user makes in their default profiles will be reflected in this property after a {@link onDidChangeDefault } event.
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. Changes the user makes in their default profiles will be reflected in this property after a {@link onDidChangeDefault } event.
(dispose test-run-profile)
Deletes the run profile.
Returns: void
Deletes the run profile. **Returns:** `void`
(kind test-run-profile)
Configures what kind of execution this profile controls. If there are no profiles for a kind, it will not be available in the UI.
Configures what kind of execution this profile controls. If there are no profiles for a kind, it will not be available in the UI.
(label test-run-profile)
Label shown to the user in the UI.
Note that the label has some significance if the user requests that
tests be re-run in a certain way. For example, if tests were run
normally and the user requests to re-run them in debug mode, the editor
will attempt use a configuration with the same label of the Debug
kind. If there is no such configuration, the default will be used.
Label shown to the user in the UI. Note that the label has some significance if the user requests that tests be re-run in a certain way. For example, if tests were run normally and the user requests to re-run them in debug mode, the editor will attempt use a configuration with the same label of the `Debug` kind. If there is no such configuration, the default will be used.
(load-detailed-coverage test-run-profile)
An extension-provided function that provides detailed statement and function-level coverage for a file. The editor will call this when more detail is needed for a file, such as when it's opened in an editor or expanded in the Test Coverage view.
The {@link FileCoverage } object passed to this function is the same instance emitted on {@link TestRun.addCoverage } calls associated with this profile.
An extension-provided function that provides detailed statement and function-level coverage for a file. The editor will call this when more detail is needed for a file, such as when it's opened in an editor or expanded in the **Test Coverage** view. The {@link FileCoverage } object passed to this function is the same instance emitted on {@link TestRun.addCoverage } calls associated with this profile.
(on-did-change-default test-run-profile)
(on-did-change-default test-run-profile listener)
(on-did-change-default test-run-profile listener this-args)
(on-did-change-default test-run-profile listener this-args disposables)
Fired when a user has changed whether this is a default profile. The event contains the new value of {@link isDefault }
Parameters:
listener
: (e: T) => any
- The listener function will be called when the event happens.this-args
: any
- The this
-argument which will be used when calling the event listener.disposables
: Disposable[] | undefined
- An array to which a {@link Disposable } will be added.Returns: Disposable
- A disposable which unsubscribes the event listener.
Fired when a user has changed whether this is a default profile. The event contains the new value of {@link isDefault } **Parameters:** - `listener`: `(e: T) => any` - The listener function will be called when the event happens. - `this-args`: `any` - The `this`-argument which will be used when calling the event listener. - `disposables`: `Disposable[] | undefined` - An array to which a {@link Disposable } will be added. **Returns:** `Disposable` - A disposable which unsubscribes the event listener.
(run-handler test-run-profile)
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.
If {@link supportsContinuousRun } is set, then {@link TestRunRequest.continuous }
may be true
. In this case, the profile should observe changes to
source code and create new test runs by calling {@link TestController.createTestRun },
until the cancellation is requested on the token
.
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. If {@link supportsContinuousRun } is set, then {@link TestRunRequest.continuous } may be `true`. In this case, the profile should observe changes to source code and create new test runs by calling {@link TestController.createTestRun }, until the cancellation is requested on the `token`.
(set-configure-handler! test-run-profile value)
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.
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.
(set-is-default! test-run-profile value)
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.
Changes the user makes in their default profiles will be reflected in this property after a {@link onDidChangeDefault } event.
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. Changes the user makes in their default profiles will be reflected in this property after a {@link onDidChangeDefault } event.
(set-label! test-run-profile value)
Label shown to the user in the UI.
Note that the label has some significance if the user requests that
tests be re-run in a certain way. For example, if tests were run
normally and the user requests to re-run them in debug mode, the editor
will attempt use a configuration with the same label of the Debug
kind. If there is no such configuration, the default will be used.
Label shown to the user in the UI. Note that the label has some significance if the user requests that tests be re-run in a certain way. For example, if tests were run normally and the user requests to re-run them in debug mode, the editor will attempt use a configuration with the same label of the `Debug` kind. If there is no such configuration, the default will be used.
(set-load-detailed-coverage! test-run-profile value)
An extension-provided function that provides detailed statement and function-level coverage for a file. The editor will call this when more detail is needed for a file, such as when it's opened in an editor or expanded in the Test Coverage view.
The {@link FileCoverage } object passed to this function is the same instance emitted on {@link TestRun.addCoverage } calls associated with this profile.
An extension-provided function that provides detailed statement and function-level coverage for a file. The editor will call this when more detail is needed for a file, such as when it's opened in an editor or expanded in the **Test Coverage** view. The {@link FileCoverage } object passed to this function is the same instance emitted on {@link TestRun.addCoverage } calls associated with this profile.
(set-on-did-change-default! test-run-profile value)
Fired when a user has changed whether this is a default profile. The event contains the new value of {@link isDefault }
Fired when a user has changed whether this is a default profile. The event contains the new value of {@link isDefault }
(set-run-handler! test-run-profile value)
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.
If {@link supportsContinuousRun } is set, then {@link TestRunRequest.continuous }
may be true
. In this case, the profile should observe changes to
source code and create new test runs by calling {@link TestController.createTestRun },
until the cancellation is requested on the token
.
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. If {@link supportsContinuousRun } is set, then {@link TestRunRequest.continuous } may be `true`. In this case, the profile should observe changes to source code and create new test runs by calling {@link TestController.createTestRun }, until the cancellation is requested on the `token`.
(set-supports-continuous-run! test-run-profile value)
Whether this profile supports continuous running of requests. If so,
then {@link TestRunRequest.continuous } may be set to true
. Defaults
to false.
Whether this profile supports continuous running of requests. If so, then {@link TestRunRequest.continuous } may be set to `true`. Defaults to false.
(set-tag! test-run-profile value)
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.
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.
(supports-continuous-run? test-run-profile)
Whether this profile supports continuous running of requests. If so,
then {@link TestRunRequest.continuous } may be set to true
. Defaults
to false.
Whether this profile supports continuous running of requests. If so, then {@link TestRunRequest.continuous } may be set to `true`. Defaults to false.
(tag test-run-profile)
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.
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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close