Skip to content

Commit

Permalink
doc: development.md
Browse files Browse the repository at this point in the history
  • Loading branch information
eguzki committed Sep 8, 2023
1 parent c2ef3ee commit 8492fd9
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions controllers/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import (
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/envtest"
logf "sigs.k8s.io/controller-runtime/pkg/log"
"sigs.k8s.io/controller-runtime/pkg/log/zap"

limitadorv1alpha1 "github.com/kuadrant/limitador-operator/api/v1alpha1"
Expand Down
30 changes: 30 additions & 0 deletions doc/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,36 @@ make local-cleanup

## Run tests

### Unittests

```sh
make test-unit
```

Optionally, add `TEST_NAME` makefile variable to run specific test

```sh
make test-unit TEST_NAME=TestConstants
```

or even subtest

```sh
make test-unit TEST_NAME=TestLimitIndexEquals/empty_indexes_are_equal
```

### Integration tests

Run integration tests

```sh
make test-integration
```

### All tests

Run all tests

```sh
make test
```
Expand Down

0 comments on commit 8492fd9

Please sign in to comment.