Files
gocryptotrader/test.sh
2017-07-31 11:44:48 +10:00

13 lines
278 B
Bash
Executable File

#!/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 -cover $d
if [ -f profile.out ]; then
cat profile.out >> coverage.txt
rm profile.out
fi
done