https://github.com/sviridov/undercover.el.git
git clone 'git://github.com/sviridov/undercover.el.git'
A test coverage library for Emacs Lisp.
undercover.el
is on earlier stage of development and has some important issues:
edebug
and can have some issues with macros coverage.undercover.el
to your Cask file:```lisp (source gnu) (source melpa)
(package-file “awesome-package.el”)
(development (depends-on “undercover”)) ```
load
or require
your package in test/test-helper.el
or features/support/env.el
(or analogue), call undercover
with wildcards that will match package files:```lisp (require 'undercover)
(undercover “.el“ ”awesome-extensions/.el” (:exclude “*-test.el”)) (require 'awesome-package) ```
COVERALLS_REPO_TOKEN
environment variable before running tests, for example:sh
$ COVERALLS_REPO_TOKEN=<your-coveralls-repo-token> cask exec ert-runner
report-file
option if you want to change report location:lisp
(undercover "*.el" (:report-file "/tmp/local-report.json"))
undercover.el
will try to merge new report with existing one.
send-report
option to nil
if you don't want to send coverage report:lisp
(undercover "*.el" (:report-file "/tmp/local-report.json") (:send-report nil))