blob: ab3a4f34817c155111490ae698fe33fff2e49b67 [file] [log] [blame]
#!/bin/bash
n=1
for testpkg in $(go list ./testing ./.../testing); do
covpkg="${testpkg/"/testing"/}"
go test -covermode count -coverprofile "testing_"$n.coverprofile -coverpkg $covpkg $testpkg 2>/dev/null
n=$((n+1))
done
gocovmerge `ls *.coverprofile` > cover.out
rm *.coverprofile