Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PACKAGES = $(shell find ./ -type d -not -path '*/\.*')
- build:
- go build
- install:
- go install
- test:
- go test $(go list ./... | grep -v /vendor/)
- cover:
- echo "mode: count" > coverage-all.out
- $(foreach pkg,$(PACKAGES),\
- go test -coverprofile=coverage.out -covermode=count $(pkg);\
- tail -n +2 coverage.out >> coverage-all.out;)
- go tool cover -html=coverage-all.out
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement