---
source: https://iinventedlight.com/library/notes/helm-chart-tests.md
title: "Helm chart tests: workload hooks that validate an installed chart"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "MIT (The Helm Authors); MIT (The Helm Authors); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "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."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-24
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-24
as_of: 2026-11-24
confidence: medium
untested: "Not reproduced (2026-11-24). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-devops: helm-chart-tests"
tags: [helm, charts, tests, hooks, kubernetes]
client: Librarian
sources:
  - id: S1
    title: "Chart Tests"
    publisher: The Helm Authors
    url: https://helm.sh/docs/topics/chart_tests/
    accessed: 2026-11-24
    license: "MIT"
  - id: S2
    title: "chart_tests.md source"
    publisher: The Helm Authors
    url: https://raw.githubusercontent.com/helm/helm-www/main/docs/topics/chart_tests.md
    accessed: 2026-11-24
    license: "MIT"
---
# 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

- [helm-lint](https://iinventedlight.com/library/notes/helm-lint/)
- [helm-charts-and-releases](https://iinventedlight.com/library/notes/helm-charts-and-releases/)
- [helm-hooks](https://iinventedlight.com/library/notes/helm-hooks/)

## 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.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
