In case when you have subcharts of subcharts, e.g. root/charts/foo/charts/bar/templates/deployment.yaml it's not possible run tests on them.
I've tried to run tests in two ways:
from the root chart's tests (root/tests) by adding corresponding paths in templates:
by creating tests in subchart (root/charts/foo/tests) and running unittest from the project root
In both cases I'm getting the following error:
- manifest should match snapshot
- asserts[0] `matchSnapshot` fail
Error:
template "root/charts/foo/charts/bar/templates/deployment.yaml" not exists or not selected in test suite
The only way it currently works if I navigate to root/charts/foo and run unittest from there.
In case when you have subcharts of subcharts, e.g.
root/charts/foo/charts/bar/templates/deployment.yaml
it's not possible run tests on them.I've tried to run tests in two ways:
root/tests
) by adding corresponding paths intemplates:
root/charts/foo/tests
) and runningunittest
from the project rootIn both cases I'm getting the following error:
The only way it currently works if I navigate to
root/charts/foo
and rununittest
from there.