terraform-plugin-testing
Input—per 1M tokens
Output—per 1M tokens
Context—tokens
WeightsClosed
About
terraform-plugin-testing is ranked #9 of 27 in infrastructure testing tools on Inferse. It runs on Linux, macOS. There is a free plan.
Compared on infrastructure testing tools
- Free plan
- Yesgithub.com
- IaC support
- Terraformgithub.com
- Provisioning tests
- Yesgithub.com
- Deployed checks
- Yesgithub.com
- Execution model
- ci_cdgithub.com
- Cloud support
- AWSgithub.com
Facts
- Purpose
- terraform-plugin-testing is a Go helper module for testing Terraform providers.github.com · 3 Oct 2026
- Acceptance tests
- Acceptance tests run real Terraform plan, apply, refresh, and destroy operations and let developers assert their outcomes.developer.hashicorp.com · 3 Oct 2026
- Unit tests
- Unit tests can test plugin code in isolated units without network connections.developer.hashicorp.com · 3 Oct 2026
- Test modes
- Acceptance tests support Lifecycle, Import, Refresh, and Query modes.developer.hashicorp.com · 3 Oct 2026
- Plan checks
- The plancheck package includes checks for empty or non-empty plans and for resource or data source values and actions.developer.hashicorp.com · 3 Oct 2026
- State checks
- The statecheck package includes checks for known values, sensitive values, and comparisons between resource or data source attributes.developer.hashicorp.com · 3 Oct 2026
- Terraform integration
- The framework uses a local Terraform binary and standard Go testing features including go test and the testing package.developer.hashicorp.com · 3 Oct 2026
- CI use
- Acceptance tests can run in any environment capable of running go test, including a continuous integration runner such as GitHub Actions.developer.hashicorp.com · 3 Oct 2026
- Infrastructure costs
- Acceptance tests can create and destroy real infrastructure, which may incur expenses and consume quotas.developer.hashicorp.com · 3 Oct 2026
- Acceptance prerequisites
- Acceptance tests require a recent stable Go version, Terraform CLI 0.12.26 or later, access to the provider and tested resources, and TF_ACC set to a value.developer.hashicorp.com · 3 Oct 2026
- Go compatibility
- The repository states that the two latest major Go releases are supported and currently requires Go 1.25 or later as a dependency.github.com · 3 Oct 2026
- License
- The project is licensed under Mozilla Public License v2.0.github.com · 3 Oct 2026
- Security reporting
- The repository asks vulnerability reporters to email [email protected] and include reproduction steps, relevant tools and versions, and tool output.github.com · 3 Oct 2026
Best terraform-plugin-testing alternatives
See all 12
7.2 AWS CloudFormation Free free plan, no paid price published Free plan
7.2 Chef InSpec Free free plan, no paid price published Free plan
6.8 CIS-CAT Pro Assessor $200/mo first paid tier
6.0 Conftest Free free plan, no paid price published Free plan
6.0 Sonobuoy See plans price on the maker's page
6.0 Terratest Free free plan, no paid price published Free plan Where it ranks on Inferse
Sources
- github.com/hashicorp/terraform-plugin-testing· checked 3 Oct 2026
- developer.hashicorp.com/terraform/plugin/testing· checked 3 Oct 2026
- developer.hashicorp.com/terraform/plugin/testing/acceptance-tes· checked 3 Oct 2026
- developer.hashicorp.com/terraform/plugin/testing/acceptance-tes· checked 3 Oct 2026
- developer.hashicorp.com/terraform/plugin/testing/acceptance-tes· checked 3 Oct 2026
- developer.hashicorp.com/terraform/plugin/testing/acceptance-tes· checked 3 Oct 2026
- github.com/hashicorp/terraform-plugin-testing/secu· checked 3 Oct 2026


