Skip to content

dannypsnl/cover-badge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/org name>.github.io/<repo name>/coverage/badge.json)

For instances

[![](https://badgen.net/https/dannypsnl.github.io/syntax-extension/coverage/badge.json)](https://dannypsnl.github.io/syntax-extension/coverage)
[![](https://badgen.net/https/dannypsnl.github.io/sauron/coverage/badge.json)](https://dannypsnl.github.io/sauron/coverage)

Result:

About

A badge generator for coverage

Topics

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages