mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-01 11:29:48 +08:00
77e88144fc
Signed-off-by: yhmo <yihua.mo@zilliz.com>
15 lines
372 B
Bash
Executable File
15 lines
372 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
echo "mode: atomic" > coverage.txt
|
|
|
|
for d in $(go list ./internal... | grep -v vendor); do
|
|
go test -race -coverpkg=./... -coverprofile=profile.out -covermode=atomic "$d"
|
|
if [ -f profile.out ]; then
|
|
sed '1d' profile.out >> coverage.txt
|
|
rm profile.out
|
|
fi
|
|
done
|
|
|
|
go tool cover -html=./coverage.txt -o ./go_coverage.html
|