Revision 15878dc80ccec03f32086415fbfea4b66164150c authored by Marko Baricevic on 31 July 2019, 15:30:11 UTC, committed by Jack Zampolin on 01 August 2019, 17:28:32 UTC
1 parent aacc71d
Raw File
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