Skip to content
This repository was archived by the owner on Jan 26, 2018. It is now read-only.

chrisns/SublimePythonCoverage

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SublimePythonCoverage is a plugin for Sublime Text 3 that can highlight lines of Python lacking test coverage, based on the output of Ned Batchelder's coverage.py <http://nedbatchelder.com/code/coverage/>_.

Port from Sublime Text 2 plugin

https://github.com/davisagli/SublimePythonCoverage.git

Installation

cd ~/.config/sublime-text-3/Packages
git clone https://github.com/zehome/SublimePythonCoverage.git

Usage

Highlighting lines missing coverage

When you open a .py file, SublimePythonCoverage tries to find coverage information and mark all uncovered lines with a symbol in the gutter.

It does this by looking in all parent directories until it finds a .coverage file as produced by coverage.py. Obviously, it only works if that file exists and contains coverage information for the .py file you opened.

You can force a reload of the coverage information and redraw of the outlines by running the show_python_coverage command, bound to super+shift+c by default.

Running tests with coverage

Django

coverage run --source='' manage.py test

About

Sublime Text 3 plugin integrating coverage.py highlighting for Python

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%