Back to skills

run-acceptance-tests

testing

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

Setup & Installation

npx skills add https://github.com/hashicorp/run-acceptance-tests --skill run-acceptance-tests
or paste the link and ask your coding assistant to install it
https://github.com/hashicorp/run-acceptance-tests
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

  • Working with run acceptance tests functionality
  • Implementing run acceptance tests features
  • Debugging run acceptance tests related issues