mirror of
https://github.com/hashicorp/vault.git
synced 2026-02-18 18:38:08 -05:00
Add a script to handle coverage
go test cannot gather coverage numbers for multiple packages https://github.com/golang/go/issues/6909 This script wraps go test to generate report for each package and then combine them in one file
This commit is contained in:
parent
2eb6a4bda9
commit
60469c0ef9
1 changed files with 1 additions and 3 deletions
4
Makefile
4
Makefile
|
|
@ -32,9 +32,7 @@ cover:
|
|||
@go tool cover 2>/dev/null; if [ $$? -eq 3 ]; then \
|
||||
go get -u golang.org/x/tools/cmd/cover; \
|
||||
fi
|
||||
godep go test $(TEST) -coverprofile=coverage.out
|
||||
godep go tool cover -html=coverage.out
|
||||
rm coverage.out
|
||||
./scripts/coverage.sh --html
|
||||
|
||||
# vet runs the Go source code static analysis tool `vet` to find
|
||||
# any common errors.
|
||||
|
|
|
|||
Loading…
Reference in a new issue