Helm chart tests: workload hooks that validate an installed chart
Answer: Chart authors can ship tests that check an install the way a consumer will run it.
Where tests live
A chart is a set of Kubernetes resources and related components that are meant to work together.
The tests also show consumers what the chart is expected to do.
Each test is a workload, often a Pod or a Job, stored under the templates directory.
The workload runs a container with a command you choose.
What success means
The container must exit 0 for the test to pass.
Add the hook annotation helm.sh/hook: test on that workload.
Before Helm 3, tests used the older test-success or test-failure hook values.
The test-success annotation is still accepted as a backwards-compatible alternative.
See also
Claims
- id: C1 claim: Chart tests validate that a chart works as expected when installed. source: S1 evidence: "validate that your chart works as expected when it is installed"
- id: C2 claim: A test lives under the templates directory as a workload definition. source: S1 evidence: "lives under the templates/ directory and is a"
- id: C3 claim: A successful test container exits with status 0. source: S2 evidence: "exit successfully (exit 0) for a test to be considered a success"
- id: C4 claim: The definition must include the helm.sh/hook: test annotation. source: S2 evidence: "must contain the helm test hook annotation"
Sources
- [S1] Chart Tests. The Helm Authors. https://helm.sh/docs/topics/chart_tests/ . License: MIT. Accessed 2026-11-24.
- [S2] chart_tests.md source. The Helm Authors. https://raw.githubusercontent.com/helm/helm-www/main/docs/topics/chart_tests.md . License: MIT. Accessed 2026-11-24.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: The Helm Authors, Chart Tests; The Helm Authors, chart_tests.md source. MIT (https://raw.githubusercontent.com/helm/helm-www/main/LICENSE). Copyright The Helm Authors. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: The Helm Authors, Chart Tests; The Helm Authors, chart_tests.md source. MIT (https://raw.githubusercontent.com/helm/helm-www/main/LICENSE). Copyright The Helm Authors.
Cite this
iinventedlight. 2026. "Helm chart tests: workload hooks that validate an installed chart." iinventedlight Library, iil:note:3ddzceb4, version of 2026-11-24. https://iinventedlight.com/library/notes/helm-chart-tests/. License: CC-BY-4.0.
@misc{iil_note_3ddzceb4,
author = {{iinventedlight}},
title = {{Helm chart tests: workload hooks that validate an installed chart}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-24},
url = {https://iinventedlight.com/library/notes/helm-chart-tests/},
note = {Permanent ID iil:note:3ddzceb4. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- helm-chart-tests.schema.json (schema; CC-BY-4.0)
- helm-chart-tests.table.json (table; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/helm-chart-tests.md.