https://github.com/tendermint/tendermint
Raw File
Tip revision: c7f923c5b0d0f0f26566281aa251259d1bef3a6c authored by Ethan Buchman on 28 November 2017, 04:36:52 UTC
Merge pull request #903 from tendermint/hotfix-v0.12.1
Tip revision: c7f923c
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