Skip to content

Visualise/highlight lines with missing branch coverageΒ #25236

@owenlamont

Description

@owenlamont

I'm not sure if this was already on the roadmap (I didn't see any obvious existing issues with titles that matched) but I was writing to request a change the coverage gutter highlights to show lines with statement coverage but incomplete branch coverage.

I appreciate being able to see the statement coverage in the gutters and branch coverage stats when running tests with coverage - but I'm a bit frustrated I couldn't find an easy way to identify the branch points missing coverage in a module easily...

Currently I have to run pytest with coverage from the command line to generate the report and see the lines missing full branch coverage.

I know PyCharm has 3 different coverage gutter highlight colours to show full coverage, partial branch coverage, and no coverage (green, yellow, and red respectively) and I was hoping the Python extension in VS Code could do something similar in this case.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions