Skip to content
Emacs minor mode for displaying code coverage
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore commit actual code + readme update Jun 20, 2018
LICENSE Initial commit Jun 20, 2018
README.md Add support for phpunit xml coverage file May 12, 2019
coverage.el Add support for phpunit xml coverage file May 12, 2019

README.md

coverage.el

Emacs minor mode for displaying code coverage.

Supporting Languages:

  • jest JavaScript framework
  • phpunit xml file generated using coverage-clover option

Requirement

Highlight.el by Drew Adams

plus default xml and json packages

Limitations

It only work for git controlled repositories (it take root git directory out of git shell command and use this to get coverage file in coverage directory).

Usage

(require 'coverage)

then run

M-x coverage-mode

Enabling the mode is very slow, if your JavaScript source file is big. To refresh the view after made changes to coverage file you can call M-x jc/mark-buffer.

To change colors

;; if you're using light theme
(face-spec-set 'jc/covered '((t :background "light green")))
(face-spec-set 'jc/not-covered '((t :background "light red")))

License

Copyright (C) 2018-2019 Jakub T. Jankiewicz

Released under GPLv3 license

You can’t perform that action at this time.