Skip to content

Commit 78129e2

Browse files
committed
move unit test files under tests/unit
1 parent b7d8602 commit 78129e2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/unit-tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ jobs:
4242
- name: Run helm-unittest
4343
# by default looks for tests/*_test.yaml
4444
run: |
45-
helm unittest --color --helm3 .
45+
helm unittest --color --helm3 -f tests/unit/*_test.yaml .

tests/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# `stackstorm-ha` Helm chart Tests
22

3-
This directory contains Helm chart integration (under `tests/integration/`) and unit tests (`tests/unit-*_test.yaml`).
3+
This directory contains Helm chart unit and integration tests (under `tests/unit/` and `tests/integration/` respectively).
44

55
## Unit tests
66

7-
Unit tests (`tests/unit-*_test.yaml`) use [`helm-unittest`](https://github.com/quintush/helm-unittest).
7+
Unit tests (`tests/unit/*_test.yaml`) use [`helm-unittest`](https://github.com/quintush/helm-unittest).
88
`helm-unittest` uses a yaml-based test file to ensure that the templates generate expected features.
99
For example, they can ensure that custom annotations are applied consistently to all of the deployments.
1010
Unit tests do not require a running kubernetes cluster.
@@ -17,7 +17,7 @@ helm dependency update
1717

1818
To run the tests manually from the chart's root dir:
1919
```
20-
helm unittest --helm3 .
20+
helm unittest --helm3 -f tests/unit/*_test.yaml .
2121
```
2222

2323

0 commit comments

Comments
 (0)