diff --git a/hack/coverprofile.sh b/hack/coverprofile.sh index aca423c4..3db9b96e 100755 --- a/hack/coverprofile.sh +++ b/hack/coverprofile.sh @@ -7,13 +7,13 @@ script_dir="$(dirname "${BASH_SOURCE[0]}" | xargs realpath)/.." pushd "${script_dir}" >/dev/null OUT_DIR="${script_dir}/coverprofiles" -APP="fleetlock" if [ ! -d "${OUT_DIR}" ]; then mkdir "${OUT_DIR}" fi -go test -coverprofile="${OUT_DIR}/cover-${APP}.out" -coverpkg "./..." "./..." -go tool cover -html "${OUT_DIR}/cover-${APP}.out" -o "${OUT_DIR}/index.html" +go test -coverprofile="${OUT_DIR}/cover.out" -coverpkg "./..." "./..." +go tool cover -html "${OUT_DIR}/cover.out" -o "${OUT_DIR}/index.html" +rm "${OUT_DIR}/cover.out" popd >/dev/null