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.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Covergen Coverage

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

To try it out:

go get

Then run go test:

go test

Now run git diff... the url for the coverage badge in 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.