terraform-acc-test
Installation
SKILL.md
Terraform Acc Test
Overview
Run Terraform provider acceptance tests with the repository's test environment loaded first. Prefer the bundled runner because it locates the requested test function with rg before choosing the Go package.
Workflow
- Check the current repository and confirm the requested test pattern.
- Locate the test function before running Go tests:
rg -n "func[[:space:]]+TestName[[:space:]]*\\(" --glob '*_test.go' . - Use the containing directory as the Go package unless the user explicitly provided
--package. - Load
.env.testfrom the repo root. If only.evn.testexists, use it and treat the spelling as intentional. - Run the test with
TF_ACC=1,go test -count=1, verbose output, and a long timeout. - Keep the process open until it exits. Report the located package, command, pass/fail result, and the relevant failure lines if it fails.
Quick Start
From the repository root: