Sublime Text 2/3 plugin for showing Python coverage information.
- Total 8K
- Win 3K
- OS X 2K
- Linux 2K
|Aug 24||Aug 23||Aug 22||Aug 21||Aug 20||Aug 19||Aug 18||Aug 17||Aug 16||Aug 15||Aug 14||Aug 13||Aug 12||Aug 11||Aug 10||Aug 9||Aug 8||Aug 7||Aug 6||Aug 5||Aug 4||Aug 3||Aug 2||Aug 1||Jul 31||Jul 30||Jul 29||Jul 28||Jul 27||Jul 26||Jul 25||Jul 24||Jul 23||Jul 22||Jul 21||Jul 20||Jul 19||Jul 18||Jul 17||Jul 16||Jul 15||Jul 14||Jul 13||Jul 12||Jul 11||Jul 10|
A plugin for Sublime Text 2/3 that can highlight lines of Python lacking test coverage, based on the output of Ned Batchelder's coverage.py, based on the original plugin for ST2, SublimePythonCoverage.
Set up Sublime Package Control if you don't have it yet.
Go to Tools > Command Palette.
Package Control: Install Package and hit enter.
PyCover and hit enter.
PyCover relies on the external coverage.py package, which you can install with
pip install coverage
Toggle missing line highlights by running the
bound to ctrl+alt+shift+c
You can also access it with the Command Palette under “Toggle Uncovered Lines”,
or via the right-click menu.
With the settings option
PyCover will start highlighting missing lines as soon as your file loads.
highlight_uncovered_lines option is used to toggle highlighting of uncovered lines.
When this option is set to
true, uncovered lines are highlighted in both editor window and minimap.
However, this can be disruptive to the experience for some users, so by default this option is set to
PyCover works by looking in all parent directories of the active file
until it finds a
.coverage file (as produced by
Obviously, it only works if that file exists
and contains coverage information for the file you opened.
.coverage file is found, PyCover invoke the
with system Python (see the 'python' settings option to change this)
and highlights any missing lines with a gutter mark.