Skip to content

Commit

Permalink
render covbadger coverage badge using covbadger
Browse files Browse the repository at this point in the history
  • Loading branch information
imsky committed Oct 25, 2017
1 parent 4379638 commit 06a940a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ quality:

test:
go test -coverprofile=coverage
# go tool cover -func=coverage | grep total | cut -d$$'\t' -f6 | cut -d'.' -f1
go run main.go -coverage $$(go tool cover -func=coverage | grep total | cut -d$$'\t' -f6 | cut -d'.' -f1) > coverage.svg

build:
GOOS=darwin GOARCH=386 go build -o covbadger-darwin
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# covbadger

![Coverage](https://rawgit.com/imsky/covbadger/master/coverage.svg)

`covbadger` generates code coverage badges from Cobertura-compatible XML coverage reports.

## Compatibility
Expand Down
18 changes: 18 additions & 0 deletions coverage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 06a940a

Please sign in to comment.