Skip to content
Kitbay
SkillOfficialactive

terraform-test

MPL-2.0Updated on Nov 4, 2026925GitHub stars

HashiCorp's skill for Terraform's built-in test framework.

What the skill teaches

HashiCorp's skill for Terraform's built-in test framework. It explains .tftest.hcl files, run blocks, assertions, apply and plan test modes and mock providers (from Terraform 1.7), and helps an agent write unit and integration tests for modules, validate outputs and resource settings, and fix test syntax or failures. Reference files hold mock provider patterns, GitHub Actions and GitLab CI examples, and a complete example suite for a VPC module, loaded only when needed. Tests in apply mode create real temporary resources.

Capabilities

  • Write .tftest.hcl test files
  • Mock providers and data sources
  • Run tests in plan or apply mode
  • Add Terraform tests to CI pipelines