2016-08-05 01:48:50 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
echo "" > coverage.txt
|
|
|
|
|
2017-12-06 02:58:09 +01:00
|
|
|
for d in $(go list ./... | grep -v browser); do
|
|
|
|
go test -coverprofile=profile.out -covermode=atomic "$d"
|
2016-08-05 01:48:50 +02:00
|
|
|
if [ -f profile.out ]; then
|
|
|
|
cat profile.out >> coverage.txt
|
|
|
|
rm profile.out
|
|
|
|
fi
|
|
|
|
done
|