https://github.com/tendermint/tendermint
Raw File
Tip revision: 018f61dbb5fdff0558b17ee8b2185459ea9dcd01 authored by Anton Kaliaev on 02 October 2019, 18:17:14 UTC
add v0.31.9 and v0.31.8 changelog updates
Tip revision: 018f61d
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