Back to skills

terraform-test

testing

Terraform's built-in testing framework for writing and running tests against Terraform configurations. Tests use .tftest.hcl files with run blocks, assert conditions, and optional mock providers to va

Setup & Installation

npx skills add https://github.com/hashicorp/terraform-test --skill terraform-test
or paste the link and ask your coding assistant to install it
https://github.com/hashicorp/terraform-test
View on GitHub

What This Skill Does

Terraform's built-in testing framework for writing and running tests against Terraform configurations. Tests use .tftest.hcl files with run blocks, assert conditions, and optional mock providers to validate module behavior without relying on external test tools. Unlike third-party tools like Terratest, terraform test runs natively with no extra binaries, supports mock providers to avoid cloud costs, and integrates directly into existing CI workflows with a single command.

When to use it

  • Working with terraform test functionality
  • Implementing terraform test features
  • Debugging terraform test related issues