https://github.com/tendermint/tendermint
Raw File
Tip revision: 7f3c697b6e4c624aa0f8d29ff97e9bfe20deb8f9 authored by Ethan Buchman on 28 June 2017, 15:45:41 UTC
Merge pull request #559 from tendermint/release-v0.10.1
Tip revision: 7f3c697
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 -v -timeout 30m -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