1
0
Fork 0
dotfiles/bin/go-cov
2024-03-18 17:08:24 -07:00

8 lines
298 B
Bash
Executable file

#!/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