run-acceptance-tests
SKILL.md
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.
- Check Existence: Verify if
.envexists. - Check Variables: Ensure the following variables are set with valid values:
LIGHTDASH_URL: The base URL of the Lightdash instance (e.g.,https://app.lightdash.cloud).LIGHTDASH_API_KEY: A valid API key for authentication.LIGHTDASH_PROJECT: The UUID of the project to use for testing.