testing: add basic coverage introspection to testObserver APIs (#226211)

* testing: add basic coverage introspection to testObserver APIs

* fix build
This commit is contained in:
Connor Peet
2024-08-22 15:31:01 -07:00
committed by GitHub
parent 38d8c3af71
commit a3598f8118
8 changed files with 74 additions and 5 deletions

View File

@@ -102,6 +102,12 @@ declare module 'vscode' {
* were passed in the {@link tests.runTests} method.
*/
readonly results: ReadonlyArray<Readonly<TestResultSnapshot>>;
/**
* Gets coverage information for a URI. This function is available only
* when a test run reported coverage.
*/
getDetailedCoverage?(uri: Uri, token?: CancellationToken): Thenable<FileCoverageDetail[]>;
}
/**