File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,26 @@ Following the targets that can be used to test your changes locally.
69
69
70
70
** NOTE** To use the ` make lint ` is required to install ` golangci-lint ` locally. More info: https://github.com/golangci/golangci-lint#install
71
71
72
+ ### Running e2e tests locally
73
+
74
+ See that you can run ` test-e2e-local ` to setup Kind and run e2e tests locally.
75
+ Another option is by manually starting up Kind and configuring it and then,
76
+ you can for example via your IDEA debug the e2e tests.
77
+
78
+ To manually setup run:
79
+
80
+ ``` shell
81
+ # To generate an Kubebuilder local binary with your changes
82
+ make install
83
+ # To create the cluster and configure a CNI which supports NetworkPolicy
84
+ kind create cluster --config ./test/e2e/kind-config.yaml
85
+ kubectl apply -f https://docs.projectcalico.org/manifests/calico.yaml
86
+ ```
87
+
88
+ Now, you can for example, run in debug mode the ` test/e2e/v4/e2e_suite_test.go ` :
89
+
90
+ ![ example] ( https://github.com/kubernetes-sigs/kubebuilder/assets/7708031/277d26d5-c94d-41f0-8f02-1381458ef750 )
91
+
72
92
### Test Plugin
73
93
74
94
If your intended PR creates a new plugin, make sure the PR also provides test cases. Testing should include:
You can’t perform that action at this time.
0 commit comments