https://github.com/tendermint/tendermint
Raw File
Tip revision: 1e4414d4a5f31ef48a22c826920d4f3dea0c28ba authored by William Banfield on 03 June 2022, 17:46:10 UTC
consensus: switch timeout message to be debug and clarify meaning (#8694)
Tip revision: 1e4414d
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 "$pkg"
	if [ -f profile.out ]; then
		tail -n +2 profile.out >> coverage.txt;
		rm profile.out
	fi
done
back to top