Show python coverage results
Vim script
Switch branches/tags
Nothing to show
Latest commit 47f8739 Nov 13, 2012 Peter Sagerson committed with Version 0.1.1: Better behavior when .coverage isn't found.

README

This is a mirror of http://www.vim.org/scripts/script.php?script_id=4292

py-coverage integrates with Ned Batchelder's code coverage tool for Python
(http://nedbatchelder.com/code/coverage/). After coverage data has been
gathered, this plugin can be used to retrieve the results and present them in
the relevant buffers.

Source lines lacking coverage ("missing") may be indicated by directly
highlighting the lines or by populating the quickfix or location lists. The
function that retrieves the line numbers is also provided for low-level
access.

:PyCoverageHighlight - Add missing lines in the current buffer to the PyCoverageMissing highlight group.
:PyCoverageClear - Remove highlighting.
:PyCoverageSetQuickfix - Set the quickfix list to missing lines.
:PyCoverageSetLoclist - Set the window's location list to the missing lines.

PyCoverageMissingLines(buffer) - Return missing line numbers for the given buffer as a List.