-
Notifications
You must be signed in to change notification settings - Fork 28.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
testing: update testing API with proposals (#207512)
* wip * testing: update testing API with proposals This replaces the test provider with: - An `addCoverage` method on the TestRun. The benefit of this is that test data can be provided gradually, even upserted, over a test run to provide more live results. - A `loadDetailedCoverage` on the profile which loads coverage details. This is the "resolve" handler before. - An additional onDidDispose event on the TestRun that extensions can use to clear allocated resources. Note that the the `FileCoverage` instance given to `loadDetailedCoverage` is the same instance provided to `addCoverage`, so it can be subclassed to tag in additional detail. The `TestRun` instance is also the same, so `WeakMap`s can be used for associating data with both. Naming might change over the next week, but there were good feelings about this structure the API call this morning. This change has a backwards-compatibility shim, but extensions should migrate over before our next stable release in ~3 weeks from today. fyi @jdneo @eleanorjboyd * avoid structuredClone
- Loading branch information
1 parent
b9bca88
commit d64800f
Showing
14 changed files
with
291 additions
and
263 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.