github.com/Bio-core/jtree@v0.0.0-20190705165106-1d7a7e7d6272/test.sh (about) 1 #!/bin/bash 2 set -e 3 for dir in $(find . -maxdepth 10 -not -path './.git*' -not -path '*/_*' -type d); 4 do 5 if ls $dir/*.go &> /dev/null; then 6 go test -short -covermode=count -coverprofile=$dir/profile.tmp $dir 7 if [ -f $dir/profile.tmp ] 8 then 9 cat $dir/profile.tmp | tail -n +2 >> profile.cov 10 rm $dir/profile.tmp 11 fi 12 fi 13 done 14 15 go tool cover -func profile.cov