runHandler

abstract var runHandler: (request: TestRunRequest, token: CancellationToken) -> PromiseLike<Void?>?(source)

Handler called to start a test run. When invoked, the function should call 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 supportsContinuousRun is set, then TestRunRequest.continuous may be true. In this case, the profile should observe changes to source code and create new test runs by calling TestController.createTestRun, until the cancellation is requested on the token.

Parameters

request

Request information for the test run.

cancellationToken

Token that signals the used asked to abort the test run. If cancellation is requested on this token, all TestRun instances associated with the request will be automatically cancelled as well.

Online Documentation