Skip to content

Commit

Permalink
Merge pull request #2350 from laozc/unit-test
Browse files Browse the repository at this point in the history
🌱 Including all packages in coverage
  • Loading branch information
k8s-ci-robot authored Sep 13, 2023
2 parents c154905 + d619a5f commit 21665a2
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 @@ -478,7 +478,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=./... -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 21665a2

Please sign in to comment.