Giverny

Terraform Test

Comprehensive guide for writing and running Terraform tests.

by hashicorp★ 944Testing & browsersOfficial

What Terraform Test does

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.

How to install Terraform Test in Claude Code

Giverny gives you a ready prompt with the exact install command from hashicorp/agent-skills. Sign in with GitHub, copy the prompt and paste it into Claude Code; Claude installs the skill and confirms it loaded. To install by hand, clone hashicorp/agent-skills and copy the plugins/terraform/skills/terraform-test folder into ~/.claude/skills/.

How to use it

Once installed, Claude loads Terraform Test on its own whenever your request matches what the skill does. You can also ask for it by name, for example: “Use the terraform-test skill on my current project.”

More Claude skills for testing & browsers