https://github.com/tendermint/tendermint
Raw File
Tip revision: 52c4e15eb25e8a3d6e77f90239710de3655d4ec6 authored by Ismail Khoffi on 14 March 2019, 15:07:06 UTC
changelog: more review fixes/release/v0.31.0 (#3427)
Tip revision: 52c4e15
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