Skip to content

Commit

Permalink
Remove generated deepcopy functions from coverage
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Kulikauskas <[email protected]>
  • Loading branch information
JustinKuli committed Jun 18, 2024
1 parent 9addcf1 commit a19417d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ jobs:

- run: |
make test
grep -v 'zz_generated.deepcopy.go' raw-cover.out > cover.out
- name: Update coverage report
uses: ncruces/go-coverage-report@v0
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ ENVTEST_K8S_VERSION ?= 1.29
.PHONY: test
test: manifests generate $(GINKGO) $(ENVTEST) ## Run all the tests
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) -p path)" $(GINKGO) \
--coverpkg=./... --covermode=count --coverprofile=cover.out ./...
--coverpkg=./... --covermode=count --coverprofile=raw-cover.out ./...

test-unit: ## Run only the unit tests
go test --coverpkg=./... --covermode=count --coverprofile=cover-unit.out ./api/... ./pkg/...
Expand Down

0 comments on commit a19417d

Please sign in to comment.