Skip to content
autogenerate a coverage badge for your README with with one dumb trick
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
covergen_test.go
foo.go
foo_test.go

README.md

Covergen Coverage

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

To try it out:

go get github.com/natefinch/covergen

Then run go test:

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...

You can’t perform that action at this time.