coverage 298 B

12345678910111213
  1. #!/bin/bash
  2. set -e
  3. n=1
  4. for testpkg in $(go list ./testing ./.../testing); do
  5. covpkg="${testpkg/"/testing"/}"
  6. go test -covermode count -coverprofile "testing_"$n.coverprofile -coverpkg $covpkg $testpkg 2>/dev/null
  7. n=$((n+1))
  8. done
  9. gocovmerge `ls *.coverprofile` > cover.out
  10. rm *.coverprofile