mirror of https://github.com/EasyDarwin/EasyDarwin
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
335 B
14 lines
335 B
6 years ago
|
#!/usr/bin/env bash
|
||
|
|
||
|
set -e
|
||
|
|
||
|
echo "mode: count" > coverage.out
|
||
|
|
||
|
for d in $(go list ./... | grep -E 'gin$|binding$|render$' | grep -v 'examples'); do
|
||
|
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
|