terraform-test
Validate Terraform configurations using the built-in testing framework with unit and integration tests.
Install
npx skills add https://github.com/hashicorp/agent-skills --skill terraform-testStats
| Total installs | 1,350 |
| Weekly installs | 1.3K |
| GitHub stars | 489 |
| First seen | Jan 26, 2026 |
| Source | @hashicorp/agent-skills |
Summary
- Write test files using .tftest.hcl syntax with run blocks that execute in plan or apply mode, supporting sequential and parallel execution with optional state isolation
- Assert conditions on resource attributes, outputs, and data sources; use expect_failures to validate that invalid inputs are properly rejected
- Mock providers (Terraform 1.7.0+) simulate infrastructure behavior without creating real resources, enabling fast unit tests without cloud costs or credentials
- Test local modules and public registry modules with variable overrides, provider configuration, and cross-run output references for dependency validation
Tags
Related skills
| Skill | Installs | vs terraform-test |
|---|---|---|
| monitoring-expert | 1,235 | -115 |
| token-integration-analyzer | 1,300 | -50 |
| cpp-pro | 1,261 | -89 |
| solana-vulnerability-scanner | 1,350 | = |
| spec-to-code-compliance | 1,325 | -25 |
FAQ
- How many installs does terraform-test have?
- terraform-test has 1,350 total installs and 1.3K installs this week.
- Where is terraform-test hosted?
- terraform-test is published by @hashicorp/agent-skills at https://github.com/hashicorp/agent-skills.
- How many GitHub stars does terraform-test have?
- terraform-test has 489 GitHub stars.
- When was terraform-test first indexed?
- OrangeBot.AI first indexed terraform-test on Jan 26, 2026.
- How do I install terraform-test?
- Run: npx skills add https://github.com/hashicorp/agent-skills --skill terraform-test