https://github.com/tendermint/tendermint
Raw File
Tip revision: 4e0dad30869933b51ffd2e54d8f751367f8ac228 authored by William Banfield on 01 April 2022, 17:32:11 UTC
stop using %w in testing errors
Tip revision: 4e0dad3
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