Skip to content
New issue

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

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

Already on GitHub? # to your account

coverage: view partial coverage (conditions) / branch coverage as well #379

Open
GitMensch opened this issue Oct 25, 2024 · 2 comments
Open

Comments

@GitMensch
Copy link
Contributor

Using lcov we see for things like

IF VAR = 0 OR > 10 also a partial coverage = if only one of those branches were taken.
Same for IF SOMETHING and the condition was always true (= the block never skipped).

Can we do this with the coverage view as well (possibly showing the line in yellow and maybe even provide information on hover which branch was taken)?

@GitMensch GitMensch changed the title coverage: view partial coverage (conditions) as well coverage: view partial coverage (conditions) / branch coverage as well Oct 25, 2024
@nberth
Copy link
Collaborator

nberth commented Oct 25, 2024

Not at the moment. But we can take a similar approach as for direct rendering of gcov, and rely on https://marketplace.visualstudio.com/items?itemName=alexdima.vscode-lcov instead.

@GitMensch
Copy link
Contributor Author

If we want to rely on an external extension (which is good - one extension that does exactly one thing well) then it seems reasonable to fork that if there is no update (the last version done after some hiatus was not released since over a year) and possibly combine with one of the other coverage related extensions (or manually add things like the explorer annotation [not available anywhere yet] / an entry in the test view for the coverage).

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants