Skip to content

Commit

Permalink
Including all packages in coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
laozc committed Sep 12, 2023
1 parent f2ce04d commit 0114022
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 @@ -470,7 +470,7 @@ test-junit: $(SETUP_ENVTEST) $(GOTESTSUM) $(GOVC) ## Run unit tests

.PHONY: test-cover
test-cover: ## Run unit tests and generate a coverage report
$(MAKE) test TEST_ARGS="$(TEST_ARGS) -coverprofile=coverage.out"
$(MAKE) test TEST_ARGS="$(TEST_ARGS) -coverpkg=./apis/...,./controllers/...,./pkg/...,./internal/... -coverprofile=coverage.out"
./hack/codecov-ignore.sh
go tool cover -func=coverage.out -o coverage.txt
go tool cover -html=coverage.out -o coverage.html
Expand Down

0 comments on commit 0114022

Please sign in to comment.