bin: go-cov
This commit is contained in:
parent
d94ee53c12
commit
82c9cb668a
2 changed files with 12 additions and 0 deletions
8
bin/go-cov
Executable file
8
bin/go-cov
Executable file
|
|
@ -0,0 +1,8 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -exuo pipefail
|
||||||
|
|
||||||
|
# This `go test` will exit nonzero for test failures. But we still want the
|
||||||
|
# coverage processing to continue, so force success here.
|
||||||
|
go test -covermode count -coverpkg ./... -coverprofile cover.out ./... || true
|
||||||
|
go tool cover -html=cover.out -o cover.html
|
||||||
|
|
@ -26,3 +26,7 @@ node_modules/
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
.gh-autosquash-default-workflow
|
.gh-autosquash-default-workflow
|
||||||
|
|
||||||
|
# Go coverage profiles
|
||||||
|
cover.out
|
||||||
|
cover.html
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue