Skip to content

Commit 60faa16

Browse files
committed
Add go.test.sh
1 parent 8c24528 commit 60faa16

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

go.test.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
echo "" > coverage.txt
5+
6+
for d in $(go list ./... | grep -v vendor); do
7+
go test -race -coverprofile=profile.out -covermode=atomic "$d"
8+
if [ -f profile.out ]; then
9+
cat profile.out >> coverage.txt
10+
rm profile.out
11+
fi
12+
done

0 commit comments

Comments
 (0)