a code coverage tool for racket
Go to file
2015-01-06 22:22:32 -05:00
private using TRAVIS_JOB_ID instead of TRAVIS_BUILD_ID 2015-01-06 22:01:54 -05:00
scribblings added the ability to cover other file extensions 2015-01-04 16:14:20 -05:00
tests fixed a contract bug 2015-01-02 14:48:52 -05:00
.gitignore added a gitignore 2014-12-28 15:08:43 -05:00
.travis.yml added travis yml 2015-01-06 22:22:32 -05:00
cover.rkt fixed breaking absolute paths 2014-12-29 19:23:30 -06:00
coverage.rkt initial commit 2014-09-22 17:03:24 -05:00
format.rkt added raw output: only useful for debugging 2014-12-30 12:18:05 -06:00
info.rkt tweak to info.rkt to try to get pkg server to build docs 2015-01-06 17:48:07 -05:00
main.rkt fixed a contract bug 2015-01-02 14:48:52 -05:00
raco.rkt Fix typo in raco output (dumbing -> dumping) 2015-01-06 14:06:33 -08:00
README.md more readme fixes 2014-12-29 11:00:32 -06:00
strace.rkt now disabling test coverage when its not needed 2014-12-28 22:24:14 -06:00

Cover

This library is a supplement to rackets raco test that adds code coverage capabilities.

How to install

install via raco pkg install cover. To install for development, checkout the repo into a folder named cover and in the parent directory run raco pkg install cover/.

How to use

To view the arguments for Cover run raco cover -h.

Code coverage can be generated by specifying the -c <format> flag. Right now the valid formats are: html and coveralls.

html simply generates html files for each source file containing coverage information and highlighted source code.

coveralls generates a coveralls coverage report and sends it to coveralls. Using coveralls requires the "COVERALLS_REPO_TOKEN" to be set, and needs bash and curl. Travic-ci/Coveralls support coming soon...

Note that coveralls expect coverage by line. To convert from an expression based coverage to line based coverage we consider any line with any unrun expression to be not run.

The directory that the coverage is outputted to can be specified with the -d flag.

If any tests run by rackunit fail, Cover will return with exit code 1. If all tests pass it will return with exit code 0.

Internals

Cover also comes with a racket API for running tests and generating coverage reports. Documentation coming soon...