sponsor Vim development Vim logo Vim Book Ad

py-coverage : Show python coverage results

 script karma  Rating -1/3, Downloaded by 1737  Comments, bugs, improvements  Vim wiki

created by
Peter Sagerson
 
script type
ftplugin
 
description
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.
:PyCoverageRemove - Remove highlighting and delete .coverage file.
: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.
 
install details
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
vim-py-coverage.zip 0.1.2 2016-09-04 7.0 Peter Sagerson Added :PyCoverageRemove (effectively `coverage erase`).
vim-py-coverage.zip 0.1.1 2012-11-13 7.0 Peter Sagerson Better behavior when .coverage isn't found.
vim-py-coverage.zip 0.1.0 2012-10-26 7.0 Peter Sagerson Documentation additions and fixes.
ip used for rating: 3.146.34.191

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github