https://github.com/tendermint/tendermint
Raw File
Tip revision: 5182ffee2573fba18c4204d288fdc318dff5665d authored by Cyrus Goh on 26 January 2021, 19:46:21 UTC
docs: master → docs-staging (#5990)
Tip revision: 5182ffe
test_cover.sh
#! /bin/bash

PKGS=$(go list github.com/tendermint/tendermint/...)

set -e

echo "mode: atomic" > coverage.txt
for pkg in ${PKGS[@]}; do
	go test -timeout 5m -race -coverprofile=profile.out -covermode=atomic "$pkg"
	if [ -f profile.out ]; then
		tail -n +2 profile.out >> coverage.txt;
		rm profile.out
	fi
done
back to top