loginsrv

Unnamed repository; edit this file 'description' to name the repository.
git clone git@jamesshield.xyz:repos/loginsrv.git
Log | Files | Refs | README | LICENSE

.generate_coverage.sh (433B)


      1 #!/bin/bash -e
      2 # Requires installation of: `github.com/wadey/gocovmerge`
      3 
      4 cd $GOPATH/src/github.com/tarent/loginsrv
      5 
      6 rm -rf ./cov
      7 mkdir cov
      8 
      9 i=0
     10 for dir in $(find . -maxdepth 10 -not -path './.git*' -not -path '*/_test.go' -type d);
     11 do
     12     if ls ${dir}/*.go &> /dev/null; then
     13         go test -v -covermode=atomic -coverprofile=./cov/$i.out ./${dir}
     14         i=$((i+1))
     15     fi
     16 done
     17 
     18 gocovmerge ./cov/*.out > full_cov.out
     19 rm -rf ./cov