Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test: test coverage API finalization #208463

Closed
2 tasks done
connor4312 opened this issue Mar 22, 2024 · 0 comments · Fixed by #208740
Closed
2 tasks done

Test: test coverage API finalization #208463

connor4312 opened this issue Mar 22, 2024 · 0 comments · Fixed by #208740

Comments

@connor4312
Copy link
Member

connor4312 commented Mar 22, 2024

Refs: #123713

Complexity: 4

Create Issue


We have at long last finalized the test coverage API. Implementing an extension that produces data for the API from scratch is challenging, and requires domain-specific knowledge, so you might find playing with the selfhost test provider to be the most effective way to test it https://github.com/microsoft/vscode-selfhost-test-provider

The new types in the API include:

  • TestRun.addCoverage
  • FileCoverage
  • TestRunProfile.loadDetailedCoverage
  • FileCoverageDetail
  • StatementCoverage
  • DeclarationCoverage

Please:

  • Do some testing that the API and UI functions as you would expect
  • Read through the API and verify that its documentation makes sense to you
  • See that UI interactions work nicely as you would expect (you can use any extension that produces coverage to test this part)
@vscodenpa vscodenpa added this to the March 2024 milestone Mar 22, 2024
@chrmarti chrmarti removed their assignment Mar 25, 2024
@eleanorjboyd eleanorjboyd removed their assignment Mar 25, 2024
connor4312 added a commit that referenced this issue Mar 25, 2024
* testing: bounds check coverage data

Fixes #208663

* testing: fix coverage label of boolean counts

Fixes #208463

* testing: clarify docs on loadDetailedCoverage

Fixes #208724
@microsoft microsoft locked and limited conversation to collaborators Jun 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants