Zum Inhalt springen
Kitbay
SkillOffiziellactive

terraform-test

MPL-2.0Aktualisiert am 4. Nov. 2026925GitHub-Sterne

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

Was der Skill vermittelt

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.

Funktionen

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