1
0
mirror of https://github.com/taigrr/gopher-os synced 2025-01-18 04:43:13 -08:00

Add test Makefile target

This commit is contained in:
Achilleas Anagnostopoulos 2017-05-15 07:30:40 +01:00
parent 52266c9f66
commit ca36793782
2 changed files with 2 additions and 1 deletions

View File

@ -138,3 +138,4 @@ lint-check-deps:
@gometalinter.v1 --install >/dev/null
test:
go test -cover ./...

View File

@ -4,7 +4,7 @@ set -e
echo "" > coverage.txt
for d in $(go list ./... | grep -v vendor); do
go test -race -coverprofile=profile.out -covermode=atomic $d
go test -v -race -coverprofile=profile.out -covermode=atomic $d
if [ -f profile.out ]; then
cat profile.out >> coverage.txt
rm profile.out