terraform-test
MPL-2.0Updated on Nov 4, 2026925GitHub stars
HashiCorp's skill for Terraform's built-in test framework.
What the skill teaches
HashiCorp's skill for Terraform's built-in test framework. It explains .tftest.hcl files, run blocks, assertions, apply and plan test modes and mock providers (from Terraform 1.7), and helps an agent write unit and integration tests for modules, validate outputs and resource settings, and fix test syntax or failures. Reference files hold mock provider patterns, GitHub Actions and GitLab CI examples, and a complete example suite for a VPC module, loaded only when needed. Tests in apply mode create real temporary resources.
Capabilities
- Write .tftest.hcl test files
- Mock providers and data sources
- Run tests in plan or apply mode
- Add Terraform tests to CI pipelines
About
- Publisher
- HashiCorp
- Tool
- Terraform
Install
- Run this to add it to Any client:
npx skills add hashicorp/agent-skills/plugins/terraform/skills/terraform-test
What's inside
- references/CI_CD.md
- references/EXAMPLES.md
- references/MOCK_PROVIDERS.md
MCP servers and skills can run code on your computer and act on your data. Review the source before installing.
Details
| Fact | Value | Source |
|---|---|---|
| Type | Skill | |
| Tool | Terraform | |
| Publisher | HashiCorp | source |
| Official status | Officialpublished in HashiCorp's own GitHub organisation; contributions restricted to HashiCorp-internal contributors | source |
| Status | active | source |
| Needs an API key or sign-in | Not stated in its documentation | |
| Includes scripts | No | source |
| Platforms | Not stated in its documentation | |
| AI clients | Not stated in its documentation | |
| Licence | MPL-2.0 | source |
| Pricing | Not stated in its documentation | |
| Activity | Last commit Nov 4, 2026925 GitHub starsDownload data not available (not on npm or PyPI) | source |
| Links | Repository |
Sources
- Skill file (SKILL.md)github.com/hashicorp/agent-skillsNov 10, 2026
- README (README.md)github.com/hashicorp/agent-skillsNov 12, 2026
- Licence file (LICENSE)github.com/hashicorp/agent-skills · Backs: LicenceNov 12, 2026
- GitHub repositorygithub.com/hashicorp/agent-skills · Backs: Official status, Publisher, Activity, LicenceNov 11, 2026
- Folder in the repository (terraform-test)github.com/hashicorp/agent-skills · Backs: Includes scriptsNov 10, 2026
- File in the repository (SKILLS.md)github.com/hashicorp/agent-skills · Backs: StatusNov 12, 2026