Terraform Test
Comprehensive guide for writing and running Terraform tests. Use when creating test files (.tftest.hcl), writing test scenarios with run blocks, validating infrastructure behavior with assertions, mocking providers and data sources, testing module outputs and resource configurations, or troubleshooting Terraform test syntax and execution.
- Type
- Skill
- Author
- hashicorp
- GitHub stars
- 910
- Installs
- 8.8K
- Last updated
- October 28, 2026
Install
npx skills add https://github.com/hashicorp/agent-skills --skill terraform-testAbout this skill
A guide for writing and running Terraform tests, covering test files (.tftest.hcl), test scenarios with run blocks, assertions for validating infrastructure behavior, mocking providers and data sources, and testing module outputs and resource configurations. Use it when creating tests or troubleshooting Terraform test syntax and execution. It fits infrastructure teams that want automated validation of Terraform modules.
Summary written with AI assistance from the project's public description.
More from hashicorp
Terraform Style Guide
Generate Terraform HCL code following HashiCorp's official style conventions and best practices. Use when writing, reviewing, or generating Terrafo...
by hashicorp
Refactor Module
Transform monolithic Terraform configurations into reusable, maintainable modules following HashiCorp's module design principles and community best...
by hashicorp
Terraform Stacks
Comprehensive guide for working with HashiCorp Terraform Stacks. Use when creating, modifying, or validating Terraform Stack configurations (.tfcom...
by hashicorp
Terraform Mcp Server
The Terraform MCP Server provides seamless integration with Terraform ecosystem, enabling advanced automation and interaction capabilities for Infr...
by hashicorp
Similar Skills
Find Skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", o...
by vercel-labs
Grill Me
A relentless interview to sharpen a plan or design.
by mattpocock
Ai Video Generation
Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0,...
by inference-sh
Ai Image Generation
Generate AI images with GPT-Image-2, FLUX, Gemini, Grok, Seedream, Reve and 50+ models via inference.sh CLI. Models: GPT-Image-2, FLUX Dev LoRA, FL...
by inference-sh