Skip to content

Commit

Permalink
Merge pull request #210 from jpodivin/cover
Browse files Browse the repository at this point in the history
Adding cover target
  • Loading branch information
openshift-merge-bot[bot] authored Oct 8, 2024
2 parents b5622e3 + 38776ed commit 16f209c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@ vet: gowork ## Run go vet against code.
test: manifests generate fmt vet envtest ginkgo ## Run tests.
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir $(LOCALBIN) -p path)" $(GINKGO) --trace --cover --coverpkg=../../pkg/...,../../controllers,../../api/v1beta1 --coverprofile cover.out --covermode=atomic ${PROC_CMD} $(GINKGO_ARGS) ./tests/...

.PHONY: cover
cover: test ## Run tests and display functional test coverage
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir $(LOCALBIN) -p path)" go tool cover -html=cover.out


##@ Build

.PHONY: build
Expand Down

0 comments on commit 16f209c

Please sign in to comment.