11 lines
No EOL
309 B
Bash
Executable file
11 lines
No EOL
309 B
Bash
Executable file
pushd $(dirname "$0")/.. # run from root dir
|
|
|
|
rm -rf ./coverage
|
|
mkdir ./coverage/
|
|
|
|
chmod 777 ./target/pilgrim_coverage
|
|
go test --cover -coverpkg=./internal/pilgrim... -covermode=count -coverprofile=./coverage/cover.out ./...
|
|
|
|
go tool cover -html=./coverage/cover.out
|
|
|
|
popd # switch back to dir we started from |