From 719d21efd8114079a689c59a6f9fb52c8d23a5a4 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Mon, 25 Mar 2019 11:54:14 -0700 Subject: [PATCH] Generate coverage across all sub-dirs (#7416) --- buildscripts/go-coverage.sh | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/buildscripts/go-coverage.sh b/buildscripts/go-coverage.sh index f948ee543..f748c6f72 100755 --- a/buildscripts/go-coverage.sh +++ b/buildscripts/go-coverage.sh @@ -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 ./...