https://github.com/tendermint/tendermint
Raw File
Tip revision: 8e1e2bd10adf21aa0afc99e17be9bad256bbcb98 authored by Ethan Buchman on 24 May 2018, 21:56:57 UTC
changelog
Tip revision: 8e1e2bd
test_cover.sh
#! /bin/bash

PKGS=$(go list github.com/tendermint/tendermint/... | grep -v /vendor/)

set -e

echo "mode: atomic" > coverage.txt
for pkg in ${PKGS[@]}; do
	go test -v -timeout 30m -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