https://github.com/tendermint/tendermint
Raw File
Tip revision: d9d4f3e6292c100e2c0a06c16d0a9cd4b6508255 authored by Ethan Buchman on 22 January 2019, 00:32:10 UTC
Prepare v0.29.0 (#3184)
Tip revision: d9d4f3e
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