https://github.com/tendermint/tendermint
Raw File
Tip revision: ac3b764b52868803fa16c37798228865477482b4 authored by Ethan Buchman on 10 July 2018, 13:55:15 UTC
update changelog
Tip revision: ac3b764
test_cover.sh
#! /bin/bash

PKGS=$(go list github.com/tendermint/tendermint/... | grep -v /vendor/)

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