File tree 2 files changed +31
-0
lines changed
2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ import (
29
29
ctrl "sigs.k8s.io/controller-runtime"
30
30
"sigs.k8s.io/controller-runtime/pkg/client"
31
31
"sigs.k8s.io/controller-runtime/pkg/envtest"
32
+ logf "sigs.k8s.io/controller-runtime/pkg/log"
32
33
"sigs.k8s.io/controller-runtime/pkg/log/zap"
33
34
34
35
limitadorv1alpha1 "github.com/kuadrant/limitador-operator/api/v1alpha1"
Original file line number Diff line number Diff line change @@ -169,6 +169,36 @@ make local-cleanup
169
169
170
170
## Run tests
171
171
172
+ ### Unittests
173
+
174
+ ``` sh
175
+ make test-unit
176
+ ```
177
+
178
+ Optionally, add ` TEST_NAME ` makefile variable to run specific test
179
+
180
+ ``` sh
181
+ make test-unit TEST_NAME=TestConstants
182
+ ```
183
+
184
+ or even subtest
185
+
186
+ ``` sh
187
+ make test-unit TEST_NAME=TestLimitIndexEquals/empty_indexes_are_equal
188
+ ```
189
+
190
+ ### Integration tests
191
+
192
+ Run integration tests
193
+
194
+ ``` sh
195
+ make test-integration
196
+ ```
197
+
198
+ ### All tests
199
+
200
+ Run all tests
201
+
172
202
``` sh
173
203
make test
174
204
```
You can’t perform that action at this time.
0 commit comments