| 2079 | } |
| 2080 | |
| 2081 | export interface TestObserver { |
| 2082 | /** |
| 2083 | * List of tests returned by test provider for files in the workspace. |
| 2084 | */ |
| 2085 | readonly tests: ReadonlyArray<TestItem>; |
| 2086 | |
| 2087 | /** |
| 2088 | * An event that fires when an existing test in the collection changes, or |
| 2089 | * null if a top-level test was added or removed. When fired, the consumer |
| 2090 | * should check the test item and all its children for changes. |
| 2091 | */ |
| 2092 | readonly onDidChangeTest: Event<TestChangeEvent>; |
| 2093 | |
| 2094 | /** |
| 2095 | * An event the fires when all test providers have signalled that the tests |
| 2096 | * the observer references have been discovered. Providers may continue to |
| 2097 | * watch for changes and cause {@link onDidChangeTest} to fire as files |
| 2098 | * change, until the observer is disposed. |
| 2099 | * |
| 2100 | * @todo as below |
| 2101 | */ |
| 2102 | readonly onDidDiscoverInitialTests: Event<void>; |
| 2103 | |
| 2104 | /** |
| 2105 | * Dispose of the observer, allowing VS Code to eventually tell test |
| 2106 | * providers that they no longer need to update tests. |
| 2107 | */ |
| 2108 | dispose(): void; |
| 2109 | } |
| 2110 | |
| 2111 | export interface TestChangeEvent { |
| 2112 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected