https://github.com/tendermint/tendermint
Raw File
Tip revision: ac86717c52a18d619d8c47f4ae792ec0bba15ece authored by William Banfield on 17 August 2022, 15:10:31 UTC
changelog entry
Tip revision: ac86717
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