SKILL8.8K installs910

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-test

About 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.


Categories


More from hashicorp


Similar Skills