Tests: One Kind That Renders, One That Runs
Write unit tests that assert what the chart renders, prove they fail when the chart breaks, then add a test hook that checks the release that is actually installed.
Skill labintermediate~45 minPro
What you'll do
- ✓Write a helm unittest suite against the chart's templates
- ✓Prove a test suite fails when the thing it tests breaks
- ✓Add a helm.sh/hook: test Job and run it with helm test
- ✓Tell a rendering test from a running test
Lab outline
- 01Tests that render
- 02Tests that run
Before you start
- Refuse a Bad Value at the Door
Every lab runs on a real machine of your own in the browser — no installs, nothing to clean up — and checks your work automatically as you go.