blob: a378f75a8cbefb2c16e8ab94b3bd611fe6ee2a66 [file] [log] [blame] [edit]
#!/usr/bin/env bash
set -e
echo "mode: atomic" > coverage.txt
for d in $(go list ./... | grep -v vendor); do
go test -coverprofile=profile.out -covermode=atomic $d
if [ -f profile.out ]; then
tail -n +2 profile.out >> coverage.txt
rm profile.out
fi
done
go tool cover -html=coverage.txt -o cover.html