github.com/okex/exchain@v1.8.0/libs/tendermint/test/test_cover.sh (about) 1 #! /bin/bash 2 3 PKGS=$(go list github.com/tendermint/tendermint/...) 4 5 set -e 6 7 echo "mode: atomic" > coverage.txt 8 for pkg in ${PKGS[@]}; do 9 go test -timeout 5m -race -coverprofile=profile.out -covermode=atomic "$pkg" 10 if [ -f profile.out ]; then 11 tail -n +2 profile.out >> coverage.txt; 12 rm profile.out 13 fi 14 done