Terraform tests (HashiCorp)
SkillWrite and run Terraform's native .tftest.hcl tests, including mocks and assertions.
A full guide to Terraform's built-in testing framework: test file structure, run blocks, assertions, variables, provider mocking and testing module outputs, plus fixes for common syntax and execution errors. Reference files add more patterns.
Try asking:
- "Add tests for my VPC module"
- "Mock the AWS provider in my Terraform tests"
- "Why does terraform test fail on this run block?"
Source: hashicorp/agent-skills · MPL-2.0 · by HashiCorp

Log in to join the discussion.