Skip to content

Commit

Permalink
[Chore] Remove cmd dir from coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
maypok86 committed Mar 4, 2024
1 parent 6b88ca0 commit 97338b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ test: test.unit ## Run all the tests
test.unit: ## Run all unit tests
@echo 'mode: atomic' > coverage.txt
go test -covermode=atomic -coverprofile=coverage.txt.tmp -coverpkg=./... -v -race ./...
cat coverage.txt.tmp | grep -v "/generated/" > coverage.txt
cat coverage.txt.tmp | grep -v -E "/generated/|/cmd/" > coverage.txt
rm coverage.txt.tmp

.PHONY: cover
Expand Down

0 comments on commit 97338b6

Please sign in to comment.