mirror of https://github.com/rancher/hull.git
13 lines
356 B
Bash
Executable File
13 lines
356 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
if [[ -z ${MODULE} ]]; then
|
|
MODULE=./...
|
|
fi
|
|
|
|
mkdir -p coverage
|
|
go test -count=1 -v ${MODULE} -covermode=count -coverpkg=${MODULE} -coverprofile coverage/coverage.out
|
|
go tool cover -html coverage/coverage.out -o coverage/coverage.html
|
|
echo ""
|
|
echo "SUCCESS: Run 'open coverage/coverage.html' to see the results or refresh the page."
|