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.

hashicorp Updated 11.1k repo stars

File contents

hashicorp/agent-skills commit 0002baed61

Frequently asked questions

npx get-skill add hashicorp/terraform-test