coverage-highlight.vim
coverage-highlight.vim copied to clipboard
Displaying covered lines as well
Just wondering if it might be possible to have something similar to vim-go's coverage:
- goCoverageNormalText greyed
- goCoverageCovered green
- goCoverageUncover red
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.
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.
Here are some screenshots.
I'd be happy to help with the XML if you want to it a go.
| No coverage | Coverage |
|---|---|
![]() |
![]() |

