Skip to content

Commit 197f56a

Browse files
committed
doc: development.md
1 parent 6b7b01f commit 197f56a

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

controllers/suite_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import (
2929
ctrl "sigs.k8s.io/controller-runtime"
3030
"sigs.k8s.io/controller-runtime/pkg/client"
3131
"sigs.k8s.io/controller-runtime/pkg/envtest"
32+
logf "sigs.k8s.io/controller-runtime/pkg/log"
3233
"sigs.k8s.io/controller-runtime/pkg/log/zap"
3334

3435
limitadorv1alpha1 "github.com/kuadrant/limitador-operator/api/v1alpha1"

doc/development.md

+30
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,36 @@ make local-cleanup
169169

170170
## Run tests
171171

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+
172202
```sh
173203
make test
174204
```

0 commit comments

Comments
 (0)