google / coverage

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

coverage.el generates code coverage profiles and overlays them in GNU Emacs buffers.

Adding support for new languages and tools is easy. Currently coverage.el supports Go coverage profiles, gcov profiles, and lcov profiles.

Go coverage profile

Installation

Add to .emacs.el

(add-to-list 'load-path "/path/to/coverage/directory")
(require 'coverage)

The package requires GNU Emacs 24.3+.

To test the package after installation

  • open coverage-test.el
  • Run eval-buffer (M-x eval-buffer RET)
  • Run ert (M-x ert RET t RET)

Usage

Open and follow instructions in files

  • examples/go/example.go
  • examples/c/example.c

More information is in the Commentary section in the coverage.el file.

Contributing

See CONTRIBUTING.md.

Disclaimer

This is not an official Google product.

About

License:Apache License 2.0


Languages

Language:Emacs Lisp 92.8%Language:Go 4.4%Language:C 2.7%