File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ lint: ## Run code lint checks
69
69
70
70
.PHONY : go-test
71
71
go-test : # # Run the go tests ($ go test -v ./cmd/... ./pkg/...)
72
- go test -v ./cmd/... ./pkg/...
72
+ go test -race - v ./cmd/... ./pkg/...
73
73
74
74
.PHONY : test
75
75
test : # # Run the unit tests (used in the CI)
@@ -80,7 +80,7 @@ test-coverage: ## Run coveralls
80
80
# remove all coverage files if exists
81
81
- rm -rf * .out
82
82
# run the go tests and gen the file coverage-all used to do the integration with coverrals.io
83
- go test -failfast -tags=integration -coverprofile=coverage-all.out -covermode=count ./pkg/... ./cmd/...
83
+ go test -race - failfast -tags=integration -coverprofile=coverage-all.out -covermode=atomic ./pkg/... ./cmd/...
84
84
85
85
.PHONY : test-e2e-local
86
86
test-e2e-local : # # It will run the script to install kind and run e2e tests
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ kubebuilder create controller --group apps --version v1beta2 --kind Deployment -
37
37
# Verify the controller-manager builds and the tests pass
38
38
go build ./cmd/...
39
39
go build ./pkg/...
40
- go test ./cmd/...
41
- go test ./pkg/...
40
+ go test -race ./cmd/...
41
+ go test -race ./pkg/...
42
42
43
43
fi
Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ header_text "running kubebuilder unit tests"
140
140
cd ${go_workspace} /src/sigs.k8s.io/kubebuilder
141
141
142
142
export GO111MODULE=on
143
- go test ./cmd/... ./pkg/...
143
+ go test -race ./cmd/... ./pkg/...
144
144
145
145
# test project v2
146
146
GO111MODULE=on test_project project-v2 2
You can’t perform that action at this time.
0 commit comments