https://github.com/tendermint/tendermint
Raw File
Tip revision: 821c60abc51a4869a6f3e93f04201c99452eee2a authored by Ethan Buchman on 01 November 2018, 06:21:14 UTC
update changelog
Tip revision: 821c60a
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