Skip to content
H

hashicorp/terraform-test

Built-in testing framework for Terraform configurations with .tftest.hcl files

Open source

Star
#12752in AI Skills
0In stores

Description

terraform-test is an agent skill from HashiCorp that covers Terraform's built-in testing framework for writing and running tests against Ter…

Highlights

  • Tests in .tftest.hcl files with run blocks
  • Mock providers avoid cloud costs
  • Plan-mode unit tests without real resources
  • expect_failures for validation checks
  • Runs in CI with a single command

Ratings & Reviews

No ratings yet

Be the first to rate hashicorp/terraform-test.

People also visit

T

terraform-test

Comprehensive guide for writing and running Terraform tests

AI Skills
Get
H

hashicorp/provider-test-patterns

Acceptance test patterns for Terraform providers using terraform-plugin-testing

AI Skills
Get
R

run-acceptance-tests

Guide for running acceptance tests for a Terraform provider

AI Skills
Get
H

hashicorp/run-acceptance-tests

Run acceptance tests for Terraform providers using Go's test runner

AI Skills
Get
P

provider-test-patterns

Terraform provider acceptance test patterns using terraform-plugin-testing

AI Skills
Get
T

terraform-skill

by Anton Babenko

AI Skills
Get

hashicorp/terraform-test FAQ

What does terraform-test do?

It writes and runs tests for Terraform configurations using the built-in test framework and .tftest.hcl files.

How do I install it?

Run npx skills add https://github.com/hashicorp/agent-skills --skill terraform-test.

Does it need extra tools?

No. The page says terraform test runs natively with no extra binaries, unlike Terratest.

Can tests run without cloud access?

Yes. The page describes mock providers and plan-mode tests that run without provisioning real resources.

Who publishes it?

HashiCorp, in its agent-skills repository on GitHub. The page labels it official.

What are the best hashicorp/terraform-test alternatives?

Popular alternatives to hashicorp/terraform-test include terraform-test, hashicorp/provider-test-patterns and run-acceptance-tests. See all hashicorp/terraform-test alternatives

Developer Stuff

Badges