-
Notifications
You must be signed in to change notification settings - Fork 186
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
Add coverage data collection to the test reporter #3360
Add coverage data collection to the test reporter #3360
Conversation
How to use the Graphite Merge QueueAdd the label graphite-merge to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
d38a720
to
1ddedb7
Compare
1ddedb7
to
b525656
Compare
b525656
to
47263d5
Compare
583b92f
to
e2be29a
Compare
47263d5
to
b932821
Compare
e2be29a
to
7302dbb
Compare
b932821
to
2b70b00
Compare
68bc969
to
16a063e
Compare
16a063e
to
e585dc8
Compare
Motivation
First step for #1800
This PR adds the capability to our test reporter to collect coverage using Ruby's built-in coverage API.
Implementation
The coverage API is pretty convenient. You invoke
Coverage.start
to begin collecting and thenCoverage.result
returns the data.The implementation is essentially just that. The rest is simply transforming the coverage data that comes from the Ruby API into the format that VS Code expects, so that we don't need any handling on the extension side.
Automated Tests
Added a test.