coverage-highlight.vim icon indicating copy to clipboard operation
coverage-highlight.vim copied to clipboard

Displaying covered lines as well

Open ljmc-github opened this issue 4 years ago • 2 comments

Just wondering if it might be possible to have something similar to vim-go's coverage:

I don't know much about coverage.py, just started using, so the limitation might be there, but asking in case we can enhance with that as it is quite useful.

ljmc-github avatar Apr 02 '21 17:04 ljmc-github

I'd love a screenshot to see what it looks like.

Implementing it might not be easy: currently I'm parsing the output of coverage report -m, shows only line numbers for uncovered lines. One option would be to use coverage xml and parse the produced XML file, which lists both covered and uncovered lines.

mgedmin avatar Apr 03 '21 08:04 mgedmin

Here are some screenshots.

I'd be happy to help with the XML if you want to it a go.

No coverage Coverage
Screenshot from 2021-04-04 20-56-59 Screenshot from 2021-04-04 20-57-13

ljmc-github avatar Apr 04 '21 19:04 ljmc-github