Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/natefinch/covergen

autogenerate a coverage badge for your README with with one dumb trick
https://github.com/natefinch/covergen

Last synced: 28 days ago
JSON representation

autogenerate a coverage badge for your README with with one dumb trick

Awesome Lists containing this project

README

        

# Covergen ![Coverage](http://img.shields.io/badge/coverage-100.0%25-brightgreen.svg)

Autoupdate a coverage badge in your README.md with this one dumb trick!

To try it out:

```shell
go get github.com/natefinch/covergen
```

Then run go test:

```shell
go test
```

Now run git diff... the url for the coverage badge in README.md is updated automagically! No other commands need be run.

Check out covergen_test.go for how it works.

The only drawback is that you more than double the time it takes to run your tests...