github.com/kekek/gb@v0.4.5-0.20170222120241-d4ba64b0b297/bin/coverage.sh (about) 1 #!/bin/bash 2 3 set -e 4 5 rm -f coverage.txt 6 7 for d in $(go list github.com/constabulary/gb/...); do 8 go test -coverprofile=profile.out -covermode=atomic $d 9 10 if [ -f profile.out ]; then 11 cat profile.out >> coverage.txt 12 rm profile.out 13 fi 14 done