https://github.com/tendermint/tendermint
Raw File
Tip revision: 7497331f47f0171ae732388c334b6bf4be35ddf0 authored by tycho garen on 12 May 2021, 14:37:01 UTC
change lock
Tip revision: 7497331
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