| jrperritt | c8f12c6 | 2016-10-11 11:29:10 -0500 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | n=1 | ||||
| 3 | for testpkg in $(go list ./testing ./.../testing); do | ||||
| 4 | covpkg="${testpkg/"/testing"/}" | ||||
| 5 | go test -covermode count -coverprofile "testing_"$n.coverprofile -coverpkg $covpkg $testpkg 2>/dev/null | ||||
| 6 | n=$((n+1)) | ||||
| 7 | done | ||||
| 8 | gocovmerge `ls *.coverprofile` > cover.out | ||||
| 9 | rm *.coverprofile | ||||