bazel-contrib / bazel-contrib/vscode-bazel

Show Coverage Golang with VSCODE

Open
#436 1 comment 1 reaction 0 assignees View on GitHub
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)

Image

Image

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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.