Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TestRunRequest

A TestRunRequest is a precursor to a TestRun, which in turn is created by passing a request to TestController.createTestRun. The TestRunRequest contains information about which tests should be run, which should not be run, and how they are run (via the profile).

In general, TestRunRequests are created by the editor and pass to TestRunProfile.runHandler, however you can also create test requests and runs outside of the runHandler.

Hierarchy

  • TestRunRequest

Index

Constructors(1)

Properties(4)

Constructors(1)

constructor

  • Parameters

    • Optional include: readonly TestItem[]

      Array of specific tests to run, or undefined to run all tests

    • Optional exclude: readonly TestItem[]

      An array of tests to exclude from the run.

    • Optional profile: TestRunProfile

      The run profile used for this request.

    • Optional continuous: boolean

      Whether to run tests continuously as source changes.

    Returns TestRunRequest

Properties(4)

Readonly include

include: undefined | readonly TestItem[]

A filter for specific tests to run. If given, the extension should run all of the included tests and all their children, excluding any tests that appear in TestRunRequest.exclude. If this property is undefined, then the extension should simply run all tests.

The process of running tests should resolve the children of any test items who have not yet been resolved.

Readonly exclude

exclude: undefined | readonly TestItem[]

An array of tests the user has marked as excluded from the test included in this run; exclusions should apply after inclusions.

May be omitted if no exclusions were requested. Test controllers should not run excluded tests or any children of excluded tests.

Readonly profile

profile: undefined | TestRunProfile

The profile used for this request. This will always be defined for requests issued from the editor UI, though extensions may programmatically create requests not associated with any profile.

Optional Readonly continuous

continuous: boolean

Whether the profile should run continuously as source code changes. Only relevant for profiles that set TestRunProfile.supportsContinuousRun.

Generated by TypeDoc. Maintained by 紫升

Links: 搜外友链, 69中文网