pilgrim/bin/test_coverage.sh

12 lines
258 B
Bash
Raw Normal View History

pushd $(dirname "$0")/.. # run from root dir
set -e
go build -cover -o target/pilgrim_coverage main.go
chmod 777 ./target/pilgrim_coverage
GOCOVERDIR=coverage ./target/pilgrim
go tool covdata percent -i=coverage
popd # switch back to dir we started from