1
0
Fork 0

bin: go-cov

This commit is contained in:
Jeremy Kaplan 2024-03-18 17:04:03 -07:00
commit 82c9cb668a
2 changed files with 12 additions and 0 deletions

8
bin/go-cov Executable file
View file

@ -0,0 +1,8 @@
#!/usr/bin/env bash
set -exuo pipefail
# This `go test` will exit nonzero for test failures. But we still want the
# coverage processing to continue, so force success here.
go test -covermode count -coverpkg ./... -coverprofile cover.out ./... || true
go tool cover -html=cover.out -o cover.html

View file

@ -26,3 +26,7 @@ node_modules/
.DS_Store .DS_Store
.gh-autosquash-default-workflow .gh-autosquash-default-workflow
# Go coverage profiles
cover.out
cover.html