hydra local test¶
Run tests for Hydra applications.
CLI help recording¶
Synopsis¶
Description¶
Provides subcommands for testing Hydra application configurations. Currently supports reference parser validation.
Subcommands¶
hydra local test refs¶
Validate that the ref-parser correctly resolves references in the rendered output. Compares the current output against stored expected files to detect regressions.
| Flag | Description |
|---|---|
--update |
Regenerate expected files from current output (use after intentional changes) |
--hydra-context |
Path to the Hydra context directory (or set HYDRA_CONTEXT env var) |
--exclude-app |
Glob pattern to exclude applications (repeatable) |
--include / -i |
CEL expression to filter resources |
--exclude / -e |
CEL expression to exclude resources |
--no-cache |
Disable persistent Helm template cache and in-process Helm-related caches for this run |
Examples¶
# Run ref tests for a single app
hydra local test refs prod.infra.cert-manager
# Run ref tests for all apps on a cluster
hydra local test refs prod.**
# Update expected files after intentional changes
hydra local test refs prod.** --update
# Test multiple specific apps
hydra local test refs prod.infra.cert-manager prod.apps.my-service
See Also¶
hydra ci run test— chart-level CI tests (lint, template validation)hydra local template— manually inspect rendered output