run-acceptance-tests

Runs and diagnoses Terraform provider acceptance tests using Go test commands.

1|1|Updated Dec 30, 2025
One-click install
npx skills add https://github.com/anyscale/terraform-provider-anyscale --skill run-acceptance-tests-anyscale
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: run-acceptance-tests
Source: https://github.com/anyscale/terraform-provider-anyscale/tree/main/.claude/skills/run-acceptance-tests
Command: npx skills add https://github.com/anyscale/terraform-provider-anyscale --skill run-acceptance-tests-anyscale

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Running Terraform provider acceptance tests requires specific environment variables, Go test flags, and diagnostic steps that are easy to forget or misconfigure, leading to confusing failures and false results. ## Core Features & Use Cases - Focused Test Execution: Run a single acceptance test (functions prefixed with TestAcc) with the required TF_ACC=1 environment variable and non-verbose output by default. - Progressive Diagnosis: Escalate through cumulative debugging options including -count=1 to bypass caching, -v verbose output, TF_LOG=debug logging, and TF_ACC_WORKING_DIR_PERSIST=1 to preserve the Terraform workspace. - False Negative Detection: "Flip" a passing test by intentionally breaking a TestCheckFunc to confirm the test actually validates what it claims. - Use Case: When a TestAccCloudHappyPath test fails in CI, use this Skill to rerun it with caching disabled, enable debug logging, and persist the workspace to inspect the actual infrastructure state. ## Quick Start Run the acceptance test named TestAccCloudHappyPath and help me diagnose any failures.

Frequently Asked Questions about run-acceptance-tests

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run a single Terraform acceptance test?▼

Run a single acceptance test with `go test -run=TestAccFeatureHappyPath` and set the environment variable `TF_ACC=1`. Acceptance tests are Go test functions with the `TestAcc` prefix, and non-verbose output is the default.

How to debug a failing Terraform acceptance test?▼

Debug a failing acceptance test by escalating cumulatively: rerun with `-count=1` to bypass cached results, add `-v` for verbose output, set `TF_LOG=debug` for debug-level logging, and set `TF_ACC_WORKING_DIR_PERSIST=1` to preserve the Terraform workspace.

Why does my acceptance test pass but not actually validate anything?▼

A passing acceptance test may be a false negative. Flip it by editing a TestCheckFunc value in a TestStep, rerunning the test, and confirming it fails; if it fails, revert the edit to confirm the test is valid.

What environment variables are required for Terraform acceptance tests?▼

Terraform acceptance tests require `TF_ACC=1` to enable them. Specific providers may require additional environment variables, and missing ones are typically indicated in the test output.

Why does go test skip rerunning my acceptance test?▼

Go test caches previous results, so an unchanged test may not rerun. Use the `-count=1` flag to force execution and bypass the cached result.