Add test script

This commit is contained in:
Adrian Gallagher
2017-04-03 02:46:47 -07:00
parent f51ec79763
commit 86d52ef845
2 changed files with 111 additions and 0 deletions

12
test.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -e
echo "" > coverage.txt
for d in $(go list ./... | grep -v vendor); do
go test -race -coverprofile=profile.out -covermode=atomic $d
if [ -f profile.out ]; then
cat profile.out >> coverage.txt
rm profile.out
fi
done