8 lines
298 B
Bash
Executable file
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
|