run-acceptance-tests

Run Terraform provider acceptance tests with Go test runner and debugging.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/benonions/dotfiles --skill run-acceptance-tests-benonions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: run-acceptance-tests
Source: https://github.com/benonions/dotfiles/tree/main/codex/.codex/skills/community/hashicorp-agent-skills/terraform/provider-development/skills/run-acceptance-tests
Command: npx skills add https://github.com/benonions/dotfiles --skill run-acceptance-tests-benonions

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a streamlined process for executing acceptance tests for Terraform providers, ensuring the reliability and correctness of provider development.

Core Features & Use Cases

  • Focused Test Execution: Run specific acceptance tests using Go's test runner.
  • Debugging Assistance: Offers progressive debugging options including verbose output, debug logging, and workspace persistence.
  • Use Case: When developing a new feature for a Terraform provider, use this Skill to run the TestAccMyNewFeature acceptance test to verify your changes.

Quick Start

Use the run-acceptance-tests skill to run the acceptance test named TestAccMyNewFeature.

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 specific Terraform provider acceptance tests?

To run Terraform provider acceptance tests, execute specific tests prefixed with TestAcc using Go's test runner. This allows you to target and verify individual features during provider development.

What environment variables need setup for Terraform provider acceptance testing?

Terraform provider acceptance testing requires specific environment variable setup before execution. Configuring these variables ensures the test runner successfully authenticates and provisions the necessary infrastructure resources.

What is the best way to debug a failing TestAcc acceptance test?

The best way to debug a failing TestAcc acceptance test is using progressive debugging strategies. This includes enabling verbose output, configuring debug logging, and persisting the workspace for further infrastructure inspection.

How do I ensure the robustness of passing Terraform provider acceptance tests?

To ensure the robustness of passing Terraform provider acceptance tests, you can apply strategies for diagnosing and flipping them. This involves running the tests repeatedly and modifying environmental conditions to expose hidden flakiness.

Can I persist the workspace after running Terraform provider acceptance tests?

Yes, you can persist the workspace after running Terraform provider acceptance tests. This workspace persistence is a progressive debugging option that allows you to inspect the provisioned infrastructure state directly.