<#16532 Support Helm unittest snapshot testing> Is...
# github-notifications
c
#16532 Support Helm unittest snapshot testing Issue created by alonsodomin Is your feature request related to a problem? Please describe. The Helm
unittest
plugin has a feature that allows to produice snapshots of the rendered templates that can later be used to perform assertions against the whole snapshot instead of smaller chunks of the rendered result: https://github.com/quintush/helm-unittest#snapshot-testing Describe the solution you'd like For this to have a good user experience should give the option to the end user to export the snapshots against the right location for each of the charts. This may be achieved with a
helm-unittest-snapshot
goal that would run the
unittest
plugin with the
--update-snapshot
flag, which will not run the tests but rather generate the said snapshots. When running the tests, the snapshot files will also be loaded into the processes sandbox. Any changes that those snapshots may receive during the process execution can be re-exported as
TestResult.extra_output
so they can be compared against the snapshots in the workspace. Describe alternatives you've considered An alternative to the
helm-unittest-snapshot
goal would be use the already existent
export-codegen
goal. Additional context N/A pantsbuild/pants