Print test info when run ut (#14470)

Signed-off-by: xige-16 <xi.ge@zilliz.com>
This commit is contained in:
xige-16 2021-12-29 13:49:20 +08:00 committed by GitHub
parent b4c3cd8cf2
commit 0ddf890a32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,7 +25,7 @@ echo "mode: atomic" > ${FILE_COVERAGE_INFO}
# run unittest
echo "Running unittest under ./internal"
for d in $(go list ./internal... | grep -v vendor); do
go test -race -coverpkg=./... -coverprofile=profile.out -covermode=atomic "$d"
go test -race -v -coverpkg=./... -coverprofile=profile.out -covermode=atomic "$d"
if [ -f profile.out ]; then
sed '1d' profile.out >> ${FILE_COVERAGE_INFO}
rm profile.out