run-acceptance-tests

run-acceptance-tests is a skill for Claude Code from hashicorp/agent-skills. It costs 58 tokens per session (708 once invoked), scanned A, original, MPL-2.0.

A guide for running Terraform provider acceptance tests, which are Go tests that create real infrastructure through a provider's live service.

In plain words
What is it for?
Use it to run a focused TestAcc test, find required setup, and diagnose failed or misleadingly passing acceptance tests.
Why use it?
It helps avoid accidental costs, wrong credentials, missing environment variables, and tests stopping before they finish.

Skill for Claude Code ✓ vendor

Written for Claude Code: shipped in a Claude Code plugin.

Part of the terraform plugin — 16 skills shipped together

Good fit Use it to run a focused TestAcc test, find required setup, and diagnose failed or misleadingly passing acceptance tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hashicorp/agent-skills/run-acceptance-tests
About the project

HashiCorp Agent Skills is a collection of reusable instructions and plugins that help coding agents work with Terraform and Packer. Developers use it to add HashiCorp product workflows to supported coding-agent tools, either individually or as product bundles.

hashicorp/agent-skills · 947 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add hashicorp/agent-skills --skill run-acceptance-tests
Clone the repo
git clone --depth 1 https://github.com/hashicorp/agent-skills

Made for: Claude Code.

Or install terraform, the plugin that ships this one along with the rest of its 16 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for run-acceptance-tests

README.md
[![agentmods](https://agentmods.dev/badge/skills/hashicorp/agent-skills/run-acceptance-tests/github.svg)](https://agentmods.dev/skills/hashicorp/agent-skills/run-acceptance-tests)
Your own site
<a href="https://agentmods.dev/skills/hashicorp/agent-skills/run-acceptance-tests"><img src="https://agentmods.dev/badge/skills/hashicorp/agent-skills/run-acceptance-tests/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for run-acceptance-tests

Your own site · 80×15
<a href="https://agentmods.dev/skills/hashicorp/agent-skills/run-acceptance-tests"><img src="https://agentmods.dev/badge/skills/hashicorp/agent-skills/run-acceptance-tests.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 708 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 15 Sept 2026
  • Snyk pass 15 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00058 $0.00708
Opus 5.5 $0.00023 $0.00283
Sonnet 5.5 $0.00012 $0.00142
Haiku 4.5 $0.00006 $0.00071

Measured 3mo ago against content hash cfde96297448, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

run-acceptance-tests scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/terraform/skills/run-acceptance-tests/SKILL.md · 65 lines

What it actually says

An acceptance test is a Go test function with the prefix TestAcc.

Before running: acceptance tests create real infrastructure against the provider's live API, which may incur cost. Confirm the configured credentials point at a test account before proceeding.

To run a focused acceptance test named TestAccFeatureHappyPath:

  1. Run go test -run=TestAccFeatureHappyPath -timeout 60m with the following environment variables:

    • TF_ACC=1

    Default to non-verbose test output. Always pass an explicit -timeout: go test kills any test run after 10 minutes by default, and acceptance tests routinely exceed that.

  2. The acceptance tests may require additional environment variables for specific providers. To discover which ones:

    • Read the test's PreCheck / testAccPreCheck function and search the test files: grep -rn "os.Getenv" --include="*_test.go".
    • Check the repository's README, CONTRIBUTING, or .env.example for documented test setup.
    • The provider's Configure method shows how credentials are resolved; use the provider-configuration skill (if available) to understand a credential provider chain.

    Set the variables for the single test invocation (EXAMPLE_API_KEY=... TF_ACC=1 go test ...) rather than exporting them into the shell profile, and never write secret values into files inside the repository.

To diagnose a failing acceptance test, use these options, in order. These options are cumulative: each option includes all the options above it.

  1. Run the test again. Use the -count=1 option to ensure that go test does not use a cached result.
  2. Offer verbose go test output. Use the -v option.
  3. Offer debug-level logging. Enable debug-level logging with the environment variable TF_LOG=debug.
  4. Offer to persist the acceptance test's Terraform workspace. Enable persistence with the environment variable TF_ACC_WORKING_DIR_PERSIST=1.

A passing acceptance test may be a false negative. To "flip" a passing acceptance test named TestAccFeatureHappyPath:

  1. Edit the value of one of the TestCheckFuncs in one of the TestSteps in the TestCase.
  2. Run the acceptance test. Expect the test to fail.
  3. If the test fails, then undo the edit and report a successful flip. Else, keep the edit and report an unsuccessful flip.

If a test run is interrupted, real resources may be left behind; run the provider's sweepers if it registers them (see the provider-test-patterns skill's sweeper reference, if available). For writing or restructuring tests, use the provider-test-patterns skill.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 65 lines · 58 tokens per session scan A cfde96297448

Subscribe to this mod's changes

run-acceptance-tests is a skill published in the GitHub repository hashicorp/agent-skills (947 stars, last pushed 28d ago), licensed MPL-2.0. It adds 58 tokens to every session and 708 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

run-acceptance-tests compared with skills from other repositories

run-acceptance-tests next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
run-acceptance-testshashicorp/agent-skillsSkill94728d agoMPL-2.0A58Claude Code
eval-dataset-designbojieli/ai-agent-bookSkill61kyesterdayApache-2.0A138Claude Code, Codex
create-verification-skillYeachan-Heo/oh-my-claudecodeSkill41kyesterdayMITA45Claude Code
verify-omnigentomnigent-ai/omnigentSkill12ktodayApache-2.0A100Claude Code, Codex
test-masterJeffallan/claude-skillsSkill13kyesterdayMITA104Claude Code
dogfoodcallstack/agent-deviceSkill5.6ktodayMITA55Claude Code
cua-driverdavidondrej/skillsSkill4.4k5d agoMITA68Claude Code, Codex