bazel-contrib / bazel-contrib/vscode-bazel
Show Coverage Golang with VSCODE
- Dominant language
- TypeScript
- Stars
- 296
- Forks
- 108
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 5
Description
I have seen in the README how I can configure the task to enable the test coverage, but how can I display the line or branch coverage in VS Code as an overlay of a file or many files? I am using Golang with Gazelle and Bazel 8.0.2.
With the Golang Plugin, for example, I can toggle the Test Coverage (see images below)
Is there something similar for the Bazel Plugin? As far as I can see, there is an experimental feature, but I can't really see how to use it for Golang. It seems to be tested if I look at the state of the state Issue #362 for Golang, so I assume it should work, but I can't figure out how.
Contributor guide
Research direction
Start with the coverage configuration described in the README and the experimental feature referenced in the issue, then compare the Go-related behavior discussed in issue #362. Reproduce the setup with Go, Gazelle, and Bazel 8.0.2; done means line or branch coverage can be displayed as a VS Code overlay for one or more files.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, vscode
- Domain
- developer-experience, testing
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100