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
I'd like to be able to test the logic of a partial / named template directly.
This was previously open under #21 but later closed without a resolution.
Currently, I believe partials can only be tested through a template that references them, so one possible workaround would be to write a template file that only references the partial, like:
# charts/my-chart/templates/tests-for-partials/my-partial.yamlname: {{ include "my-chart.my-partial" (dict "hello" "world") }}
The problem with this is that:
these template files which only exist to facilitate a test cannot be added to .helmignore, since helm-unittest also won't see the template
therefore the template will be included in the helm package artifact, and therefore will always be rendered (unless some logic is included to not render them by default, though this also feels undesirable as it adds unnecessary render time)
The text was updated successfully, but these errors were encountered:
I suppose this is functionally a dupe of #171 as well, with the only difference being somewhat semantic: my chart isn't always meant to be a "library" - it has templates that render my partials but for simplicity's sake it would be nice to test complex partials directly
Hello,
I'd like to be able to test the logic of a partial / named template directly.
This was previously open under #21 but later closed without a resolution.
Currently, I believe partials can only be tested through a template that references them, so one possible workaround would be to write a template file that only references the partial, like:
The problem with this is that:
.helmignore
, sincehelm-unittest
also won't see the templatehelm package
artifact, and therefore will always be rendered (unless some logic is included to not render them by default, though this also feels undesirable as it adds unnecessary render time)The text was updated successfully, but these errors were encountered: