Skip to content

Commit f137f08

Browse files
committed
Add helm-test Makefile target running unit tests
1 parent ee00f72 commit f137f08

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ test: ## Run go unit tests.
156156
GOFLAGS="-buildvcs=false" \
157157
test/test.sh
158158

159+
.PHONY: helm-test
160+
helm-test: ## Run helm unit tests.
161+
helm unittest charts/ingress-nginx --file "tests/**/*_test.yaml"
162+
159163
.PHONY: lua-test
160164
lua-test: ## Run lua unit tests.
161165
@build/run-in-docker.sh \

docs/developer-guide/getting-started.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ Valid values are defined in the describe definition of the e2e tests like [Defau
8282

8383
The complete list of tests can be found [here](../e2e-tests.md)
8484

85+
**Run Helm unit tests**
86+
87+
```console
88+
make helm-test
89+
```
90+
8591
### Custom docker image
8692

8793
In some cases, it can be useful to build a docker image and publish such an image to a private or custom registry location.

0 commit comments

Comments
 (0)