Skip to content

Commit 367fa11

Browse files
authored
Merge pull request #1764 from camilamacedo86/fix-unit-tests
🌱 add plugins directory to be checked in the tests and coveralls
2 parents 8d5e286 + de9d2de commit 367fa11

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ endif
8383
##@ Tests
8484

8585
.PHONY: go-test
86-
go-test: ## Run the go tests ($ go test -v ./cmd/... ./pkg/...)
87-
go test -race -v ./cmd/... ./pkg/...
86+
go-test: ## Run the unit test
87+
go test -race -v ./cmd/... ./pkg/... ./plugins/...
8888

8989
.PHONY: test
9090
test: ## Run the unit tests (used in the CI)
@@ -95,7 +95,7 @@ test-coverage: ## Run coveralls
9595
# remove all coverage files if exists
9696
- rm -rf *.out
9797
# run the go tests and gen the file coverage-all used to do the integration with coverrals.io
98-
go test -race -failfast -tags=integration -coverprofile=coverage-all.out ./pkg/... ./cmd/...
98+
go test -race -failfast -tags=integration -coverprofile=coverage-all.out ./cmd/... ./pkg/... ./plugins/...
9999

100100
.PHONY: test-e2e-local
101101
test-e2e-local: ## It will run the script to install kind and run e2e tests

test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ header_text "running kubebuilder unit tests"
140140
cd ${go_workspace}/src/sigs.k8s.io/kubebuilder
141141

142142
export GO111MODULE=on
143-
go test -race ./cmd/... ./pkg/...
143+
go test -race -v ./cmd/... ./pkg/... ./plugins/...
144144

145145
# test project v2
146146
GO111MODULE=on test_project project-v2 2

0 commit comments

Comments
 (0)