Run acceptance tests

From ubie-oss/terraform-provider-lightdash · View interactive version

Run acceptance tests is an AI agent skill from the GitHub repository ubie-oss/terraform-provider-lightdash. Guide the execution of Lightdash Terraform provider acceptance tests, ensuring correct environment setup and targeted test execution.

How to use this skill

Skill file

Run Acceptance Tests

Purpose

Standardize the execution of acceptance tests (integration tests against a live Lightdash API) in this project. This skill ensures that the environment is correctly configured before running potentially slow or impactful tests.

Prerequisites & Mandatory Validation

Acceptance tests (setting TF_ACC=1) require a live Lightdash instance and specific environment variables.

1. Verify Environment (.env file)

Before running any acceptance tests, you MUST verify the existence and content of the .env file in the project root.

If .env is missing or incomplete:

Workflow

1. Running Acceptance Tests (Standard)

Use this for general verification of the provider's resources and data sources against a live API.

2. Targeted Acceptance Testing (Recommended)

To save time and focus on specific changes, run only relevant test cases.

Distinction from Unit Tests

Troubleshooting

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.