2018-01-26 03:46:11 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
echo "mode: count" > coverage.out
|
|
|
|
|
2018-06-22 01:51:06 +00:00
|
|
|
for d in $(go list ./... | grep -E 'gin$|binding$|render$' | grep -v 'examples'); do
|
2018-01-26 03:46:11 +00:00
|
|
|
go test -v -covermode=count -coverprofile=profile.out $d
|
|
|
|
if [ -f profile.out ]; then
|
|
|
|
cat profile.out | grep -v "mode:" >> coverage.out
|
|
|
|
rm profile.out
|
|
|
|
fi
|
|
|
|
done
|