| 2186 | } |
| 2187 | |
| 2188 | export interface TestObserver { |
| 2189 | /** |
| 2190 | * List of tests returned by test provider for files in the workspace. |
| 2191 | */ |
| 2192 | readonly tests: ReadonlyArray<TestItem>; |
| 2193 | |
| 2194 | /** |
| 2195 | * An event that fires when an existing test in the collection changes, or |
| 2196 | * null if a top-level test was added or removed. When fired, the consumer |
| 2197 | * should check the test item and all its children for changes. |
| 2198 | */ |
| 2199 | readonly onDidChangeTest: Event<TestChangeEvent>; |
| 2200 | |
| 2201 | /** |
| 2202 | * An event the fires when all test providers have signalled that the tests |
| 2203 | * the observer references have been discovered. Providers may continue to |
| 2204 | * watch for changes and cause {@link onDidChangeTest} to fire as files |
| 2205 | * change, until the observer is disposed. |
| 2206 | * |
| 2207 | * @todo as below |
| 2208 | */ |
| 2209 | readonly onDidDiscoverInitialTests: Event<void>; |
| 2210 | |
| 2211 | /** |
| 2212 | * Dispose of the observer, allowing VS Code to eventually tell test |
| 2213 | * providers that they no longer need to update tests. |
| 2214 | */ |
| 2215 | dispose(): void; |
| 2216 | } |
| 2217 | |
| 2218 | export interface TestChangeEvent { |
| 2219 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected