blob: 3efa81ba5aea4e5ae8f24a50beaab0606c03d8cb [file] [log] [blame]
#!/bin/bash
set -e
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