https://github.com/dannypsnl/cover-badge
A badge generator for coverage
https://github.com/dannypsnl/cover-badge
coverage-report racket
Last synced: about 1 month ago
JSON representation
A badge generator for coverage
- Host: GitHub
- URL: https://github.com/dannypsnl/cover-badge
- Owner: dannypsnl
- License: other
- Created: 2022-07-02T22:53:48.000Z (almost 3 years ago)
- Default Branch: develop
- Last Pushed: 2022-11-30T17:02:01.000Z (over 2 years ago)
- Last Synced: 2025-02-02T02:28:06.014Z (3 months ago)
- Topics: coverage-report, racket
- Language: Racket
- Homepage: https://pkgs.racket-lang.org/package/cover-badge
- Size: 9.77 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# cover-badge
A badge generator for coverage, based on https://badgen.net/https and https://github.com/florence/cover.
### Installation & Usage
```shell
raco pkg install --auto cover-badge
```This `raco` plugin requires you run `raco cover` first, for example, in CI flow you can write
```racket
raco cover -b .
raco cover-badge
```Deploy directory `/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://.github.io//coverage/badge.json`, all you need now is the following:
```markdown

```For instances
```markdown
[](https://dannypsnl.github.io/syntax-extension/coverage)
[](https://dannypsnl.github.io/sauron/coverage)
```Result:
[](https://dannypsnl.github.io/syntax-extension/coverage)
[](https://dannypsnl.github.io/sauron/coverage)