status-go/_assets/scripts/test-with-coverage.sh
2024-06-20 21:35:35 +01:00

9 lines
222 B
Bash
Executable File

#!/usr/bin/env bash
set -eu
coverage_file_path="$(mktemp coverage.out.rerun.XXXXXXXXXX --tmpdir="${PACKAGE_DIR}")"
go test -json \
-covermode=atomic \
-coverprofile="${coverage_file_path}" \
-coverpkg ./... \
"$@"