diff --git a/scripts/coverage.sh b/scripts/coverage.sh index d753e4a..e226660 100755 --- a/scripts/coverage.sh +++ b/scripts/coverage.sh @@ -8,12 +8,7 @@ echo "mode: atomic" > coverage.txt for d in $(find ./* -maxdepth 10 -type d); do if ls $d/*.go &> /dev/null; then - go test -coverprofile=profile.out -covermode=atomic $d - if [ -f profile.out ]; then - echo "$(pwd)" - cat profile.out | grep -v "mode: " >> coverage.txt - rm profile.out - fi + go test -covermode=atomic $d fi done