https://github.com/tendermint/tendermint
Raw File
Tip revision: d5a05eccba18b772439f57e91ddad54091aab952 authored by Ethan Buchman on 15 November 2018, 23:41:54 UTC
Merge pull request #2851 from tendermint/release/v0.26.2
Tip revision: d5a05ec
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