https://github.com/tendermint/tendermint
Raw File
Tip revision: c64a3c74c870d725ba1356f75b4afadf0928c297 authored by Ethan Buchman on 14 July 2018, 13:55:12 UTC
Merge pull request #1972 from tendermint/release/v0.22.4
Tip revision: c64a3c7
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