Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 1.8 KB

FAQ.md

File metadata and controls

29 lines (24 loc) · 1.8 KB

Frequently Asked Questions

Installation

Q: Is it possible to completely remove the plugin installation?
A: Yes. Using the below command you can uninstall the plugin from usage

$ helm plugin uninstall helm-unittest

After the plugin removal, make sure the plugin cache is also cleaned (or at least the folder which contains the unittest plugin). See https://helm.sh/docs/faq/#xdg-base-directory-support for more information to identify the cache location for Helm 3.

Debugging

Q: My test is failing but the expected and actual results are the same, what is happening?
A: The error output is formatted for better readability. The result of the formatting is that it removes spaces and line endings, which can result in the same values between the expected and actual results. With the debug option it is possible to see the expected and actual content before the formatting is done.

$ helm helm-unittest ... -d

DevOps

Q: How can I setup the helm-unittest plugin in a build environment
A: The helm-unittest plugin has the options -t, --output-type and -o, --output-file which can be use to generate testresults in a file. Most of the Buildservers have a task that can upload the testresult into the server and generate a buildreport, or determine the success or failure of the tests.

$ helm helm-unittest ... -t JUnit -o junit-results.xml

Q: Can I integrate helm-unittest plugin with the Helm Chart-Testing tool?
A: Yes. The Helm Chart-Testing tool as the option to add additional-commands when linting is used. This makes it possible to run helm unittest as part of the ct command.
Be aware! the required tools like helm and the unittest plugin need to be available on the system