Sublime Text 2/3 plugin for showing Python coverage information.
- Total 8K
- Win 4K
- Mac 2K
- Linux 2K
|Jan 18||Jan 17||Jan 16||Jan 15||Jan 14||Jan 13||Jan 12||Jan 11||Jan 10||Jan 9||Jan 8||Jan 7||Jan 6||Jan 5||Jan 4||Jan 3||Jan 2||Jan 1||Dec 31||Dec 30||Dec 29||Dec 28||Dec 27||Dec 26||Dec 25||Dec 24||Dec 23||Dec 22||Dec 21||Dec 20||Dec 19||Dec 18||Dec 17||Dec 16||Dec 15||Dec 14||Dec 13||Dec 12||Dec 11||Dec 10||Dec 9||Dec 8||Dec 7||Dec 6||Dec 5||Dec 4|
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.