You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To run the tests manually from the chart's root dir:
19
+
```
20
+
helm unittest --helm3 tests/unit/*_test.yaml .
21
+
```
22
+
23
+
Note that `helm-unittest` still defaults to helm 2, so you must pass `--helm3` or `-3` for short.
24
+
You must also tell it where the unit tests are with `-f` because we keep unit tests in the `tests/unit` directory.
25
+
26
+
See https://github.com/quintush/helm-unittest/blob/master/DOCUMENT.md for details on writing unit tests.
27
+
28
+
## Integration tests
29
+
30
+
Integration tests (under `tests/integration/`) use `helm-test` and are powered by [BATS](https://github.com/sstephenson/bats) (Bash Automated Testing System).
31
+
As integratin tests, these require a running kubernetes cluster where helm can do test deployments of this chart.
32
+
4
33
Despite the minimum amount of smoke tests written, they ensure that StackStorm was really deployed,
5
34
works correctly at its core and alive end-to-end without checking deeply specific functionality or configuration.
6
35
If something is terribly wrong, - it'll show up via failed tests.
@@ -18,4 +47,4 @@ To show the test results:
18
47
kubectl logs <release-name>-st2tests
19
48
```
20
49
21
-
See https://helm.sh/docs/developing_charts/#chart-tests with more information about Helm chart tests.
50
+
See https://helm.sh/docs/topics/chart-tests/ with more information about Helm chart tests.
0 commit comments