hashicorp/run-acceptance-tests
Run acceptance tests for Terraform providers using Go's test runner
Open source
Description
run-acceptance-tests is an agent skill from HashiCorp that runs acceptance tests for Terraform providers using Go's test runner. It handles the TestAcc naming convention, the required environment variables such as TF_ACC, and a set of progressive debugging steps for failing tests. The skill also checks that passing tests are real by deliberately breaking an assertion, which confirms that the test can catch a regression. The page says that tracking the right mix of TF_ACC, -count=1, TF_LOG and workspace persistence flags by hand is easy to get wrong, so the skill applies them in a consistent, incremental order. Example jobs from the page are running one provider acceptance test by name, debugging a failing TestAcc test with verbose output and debug logging, keeping the Terraform workspace after a run so leftover state can be inspected, and confirming that a passing test is not a false negative by breaking an assert on purpose. It is for provider developers who run these tests locally or in CI. Install it with npx skills add https://github.com/hashicorp/agent-skills --skill run-acceptance-tests. HashiCorp publishes it in its agent-skills repository on GitHub, and the page labels it official.…
Highlights
- Runs TestAcc tests with Go's test runner
- Sets TF_ACC and related variables
- Progressive debugging with TF_LOG
- Keeps the workspace for inspection
- Checks tests can catch regressions
Ratings & Reviews
No ratings yet
Be the first to rate hashicorp/run-acceptance-tests.
People also visit
hashicorp/provider-test-patterns
Acceptance test patterns for Terraform providers using terraform-plugin-testing
hashicorp/terraform-test
Built-in testing framework for Terraform configurations with .tftest.hcl files

provider-test-patterns
Terraform provider acceptance test patterns using terraform-plugin-testing
hashicorp/run-acceptance-tests FAQ
What does this skill run?
Terraform provider acceptance tests named with the TestAcc prefix, using Go's test runner.
How do I install it?
Run npx skills add https://github.com/hashicorp/agent-skills --skill run-acceptance-tests.
How does it debug a failing test?
It works through progressively more detailed steps, such as verbose output and debug logging with TF_LOG.
How does it check a passing test?
It breaks an assertion on purpose to confirm the test can catch a regression.
Who publishes it?
HashiCorp, in its agent-skills repository on GitHub. The page labels it official.
What are the best hashicorp/run-acceptance-tests alternatives?
Popular alternatives to hashicorp/run-acceptance-tests include run-acceptance-tests, hashicorp/provider-test-patterns and hashicorp/terraform-test. See all hashicorp/run-acceptance-tests alternatives











