chore_: test-with-coverage-old

This commit is contained in:
Igor Sirotin 2024-08-16 22:38:32 +01:00
parent cddff8bdb4
commit 9b0f88e55b
No known key found for this signature in database
GPG Key ID: 425E227CAAB81F95
1 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
#!/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 ./... \
"$@"