github.com/fern4lvarez/piladb@v0.2.0-alpha.20180407/dev/tests.sh (about) 1 #!/usr/bin/env bash 2 3 # This script runs all project tests 4 # putting all coverage reports in a same 5 # file. 6 7 set -e 8 echo "" > coverage.txt 9 10 for d in $(go list ./... | grep -v vendor); do 11 go test -coverprofile=profile.out -covermode=atomic $d 12 if [ -f profile.out ]; then 13 cat profile.out >> coverage.txt 14 rm profile.out 15 fi 16 done