Emacs minor mode for displaying code coverage.
jest
JavaScript framework (also with TypeScript usingts-jest
) require runningjest --coverage
,- phpunit xml file generated using coverage-clover option.
Highlight.el by Drew Adams
plus default xml
and json
packages
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).
(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")))
Copyright (C) 2018-2023 Jakub T. Jankiewicz
Released under GPLv3 license