https://github.com/tendermint/tendermint
Raw File
Tip revision: 3079eb8b30002496482bcd8aed7ab236542aecd2 authored by M. J. Fromberger on 03 June 2022, 08:42:06 UTC
Prepare Release v0.35.6 (#8685)
Tip revision: 3079eb8
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