Skip to content
emacs support for highighting python coverage results
Python Emacs Lisp
Find file
Latest commit f4b23df @mattharrison Fix for Python 3
Failed to load latest commit information.
cov2emacs Fix for Python 3
Cask Add files Finalize emacs packaging
pycoverage.el Fix code format


An emacs minor mode for reporting inline on coverage stats for Python


  • python-coverage>=4.0


Put something like this in your .emacs

(require 'linum)
(require 'pycoverage)

(defun my-coverage ()
  (when (derived-mode-p 'python-mode)

Install cov2emacs using setuptools or virtualenv or distutils

There should be .coverage file in the directory of the module you want coverage reporting on (or the parents of that directory). Note that if your file has been modified later than the .coverage file, it will be considered as stale and ignore it.


M-x pycoverage-mode

If there is a .coverage file in the directory (or a parent) of the source file try to use it for coverage information. Red highlights mean that lines were missed (Coverage percent for file is in mode line).


Forked from:
Something went wrong with that request. Please try again.