Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

Commit

Permalink
add test coverage output on presubmit
Browse files Browse the repository at this point in the history
  • Loading branch information
mikehelmick committed Jan 8, 2021
1 parent 21ea46a commit 4991111
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,14 @@ test-acc:
-race \
-timeout=10m \
-vet="${VETTERS}" \
./...
./... \
-coverprofile=coverage.out
.PHONY: test-acc

test-coverage:
@go tool cover -func ./coverage.out | grep total
.PHONY: test-coverage

e2e-test:
@go test \
-count=1 \
Expand Down
2 changes: 2 additions & 0 deletions scripts/presubmit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,5 @@ fi

echo "🧪 Test"
make test-acc
echo "🔬 Test Coverage"
make test-coverage

0 comments on commit 4991111

Please sign in to comment.