quintush / helm-unittest

BDD styled unit test framework for Kubernetes Helm charts as a Helm plugin.
MIT License
345 stars 69 forks source link

Can not run tests on deeply nested charts #205

Open SleepWalker opened 1 year ago

SleepWalker commented 1 year ago

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:

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.