Skip to content

Commit

Permalink
Coverprofiles: Ensure coverage of tests outside of package is tracked
Browse files Browse the repository at this point in the history
Signed-off-by: Heathcliff <[email protected]>
  • Loading branch information
heathcliff26 committed Apr 26, 2024
1 parent 04d4a93 commit 94807d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/coverprofile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if [ ! -d "${OUT_DIR}" ]; then
mkdir "${OUT_DIR}"
fi

go test -coverprofile="${OUT_DIR}/cover-${APP}.out" "./..."
go test -coverprofile="${OUT_DIR}/cover-${APP}.out" -coverpkg "./..." "./..."
go tool cover -html "${OUT_DIR}/cover-${APP}.out" -o "${OUT_DIR}/index.html"

popd >/dev/null

0 comments on commit 94807d8

Please sign in to comment.