https://github.com/tendermint/tendermint
Raw File
Tip revision: a57953ac57a3d635a9929604ad573038b7ab1409 authored by tycho garen on 12 July 2021, 21:54:07 UTC
e2e: reduce size of e2e suite to better reproduce failures
Tip revision: a57953a
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