LaunchKit · 2026

Setup & Installation

npx skills add https://github.com/hashicorp/agent-skills --skill run-acceptance-tests
or paste the link and ask your coding assistant to install it
https://github.com/hashicorp/agent-skills/tree/main/terraform/provider-development
View on GitHub

What This Skill Does

Runs acceptance tests for Terraform providers using Go's test runner. Handles the `TestAcc` prefix convention, required environment variables like `TF_ACC`, and progressive debugging steps when tests fail. Also validates passing tests by flipping expected values to confirm they can actually catch regressions.

Instead of manually tracking the right combination of `TF_ACC`, `-count=1`, `TF_LOG`, and workspace persistence flags, this skill applies them in a consistent, incremental order so nothing gets missed during a debugging session.

When to use it

  • Running a single Terraform provider acceptance test by name
  • Debugging a failing `TestAcc` test with verbose output and debug logging
  • Persisting the Terraform workspace after a test run to inspect leftover state
  • Confirming a passing test is not a false negative by intentionally breaking an assertion
  • Setting up missing provider-specific environment variables when a test reports them absent