Test coverage overlay for Emacs
coverlay.el
is an emacs plugin to highlight untested lines.
coverlay.el
supports widely used LCOV format. (for example, Coveralls uses lcov format)
Please note that coverlay.el
is a beta version product. Pull-requests, issue reports and patches are always welcomed.
Load coverlay.el in your .emacs
(require 'coverlay)
Coverlay contains a global mode that will highlight missed lines on every covered file.
M-x coverlay-mode
Load a lcov file and keep watching it for changes.
M-x coverlay-watch-file /path/to/lcov-file
Alternativly just read the coverage file once.
M-x coverlay-load-file /path/to/lcov-file
This command is bound to "C-c lf" by default.
And reread current coverage file
M-x coverlay-reload-file
This command is bound to "C-c lg" by default.
Coverage information about all files included in the coverage file can be displayed in a list.
M-x coverlay-display-stats
This command is bound to "C-c ls" by default.
You can also manually toggle the overlays in the current buffer.
M-x coverlay-toggle-overlays
This command is bound to "C-c ll" by default.
Some values can be customized via customize. This includes the possibility to set a base path if the filenames in the coverage file are relative.
Licensed under the GPLv3 license.