You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

16 lines
390 B

test: golint
set -e; \
for pkg in $$(go list ./...); \
do \
dir="$$(echo $${GOPATH} | awk -F: '{ print $$1 }')/src/$${pkg}"; \
out="$$dir/cover.out"; \
echo "$$out"; \
go test -v "$$pkg" -coverprofile="$$out" -check.v; \
go tool cover -html="$$out" -o "$$dir/coverage.html" 2>/dev/null || :; \
done
reflex:
reflex -r '.*\.go$$' -- make test
golint:
golint ./...