cover-badge

A badge generator for coverage


Keywords
coverage, coverage-report, racket
License
Other

Documentation

cover-badge

A badge generator for coverage, based on https://badgen.net/https and https://github.com/florence/cover.

Installation & Usage

raco pkg install --auto cover-badge

This raco plugin requires you run raco cover first, for example, in CI flow you can write

raco cover -b .
raco cover-badge

Deploy directory <repo>/coverage/ to any place, e.g. GitHub pages. Then you can access the badge.json, for example, if you put the coverage/ to GitHub pages. You might have an URL https://<user name/org name>.github.io/<repo name>/coverage/badge.json, all you need now is the following:

![](https://badgen.net/https/<user name/org name>.github.io/<repo name>/coverage/badge.json)

For example

[![](https://badgen.net/https/racket-tw.github.io/sauron/coverage/badge.json)](https://racket-tw.github.io/sauron/coverage)

Example result: