mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
Generate coverage across all sub-dirs (#7416)
This commit is contained in:
parent
e0a87e96de
commit
719d21efd8
@ -1,12 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
echo "" > coverage.txt
|
||||
|
||||
for d in $(go list ./... | grep -v browser); do
|
||||
CGO_ENABLED=0 go test -v -coverprofile=profile.out -covermode=atomic "$d"
|
||||
if [ -f profile.out ]; then
|
||||
cat profile.out >> coverage.txt
|
||||
rm profile.out
|
||||
fi
|
||||
done
|
||||
|
||||
CGO_ENABLED=0 go test -v -coverprofile=coverage.txt -covermode=atomic ./...
|
||||
|
Loading…
Reference in New Issue
Block a user