run-acceptance-tests

Run Lightdash Terraform provider acceptance tests against a live instance.

16|5|Updated Jul 19, 2023
One-click install
npx skills add https://github.com/ubie-oss/terraform-provider-lightdash --skill run-acceptance-tests-ubie-oss
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: run-acceptance-tests
Source: https://github.com/ubie-oss/terraform-provider-lightdash/tree/main/.claude/skills/run-acceptance-tests
Command: npx skills add https://github.com/ubie-oss/terraform-provider-lightdash --skill run-acceptance-tests-ubie-oss

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Acceptance tests against a live Lightdash instance are standardized and environmental setup is validated to prevent slow or impactful runs from failing due to misconfiguration.

Core Features & Use Cases

  • Environment validation and prerequisites (TF_ACC=1, .env with required variables)
  • Flexible test execution (full and targeted) via make testacc
  • Clear troubleshooting guidance for common setup and runtime issues

Quick Start

Create a .env from .env.template, populate LIGHTDASH_URL, LIGHTDASH_API_KEY, and LIGHTDASH_PROJECT, then run make testacc to execute all acceptance tests.

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 acceptance tests for a Terraform provider against a live Lightdash instance?

To run acceptance tests against a live Lightdash instance, you must set the TF_ACC=1 environment variable and configure a .env file with LIGHTDASH_URL, LIGHTDASH_API_KEY, and LIGHTDASH_PROJECT before executing make testacc.

What environment variables are required for Lightdash Terraform acceptance testing?

Lightdash Terraform acceptance testing requires TF_ACC=1 and a .env file containing LIGHTDASH_URL, LIGHTDASH_API_KEY, and LIGHTDASH_PROJECT to validate the environment and prevent misconfigured test runs.

How can I execute targeted acceptance test patterns instead of a full test suite?

You can execute targeted acceptance test patterns by using the make testacc command with specific pattern arguments, allowing controlled execution against your configured Lightdash environment instead of running the full suite.

Why are my Terraform acceptance tests failing during environment setup?

Terraform acceptance tests fail during environment setup if prerequisites are missing, such as omitting TF_ACC=1, lacking a .env file copied from .env.template, or failing to populate required Lightdash variables.

Can I use this acceptance test workflow for local development as well as CI?

Yes, this standardized acceptance test workflow supports both CI pipelines and local development, providing environment validation, flexible test selection, and troubleshooting guidance for running tests against a live Lightdash instance.