byhashicorp· 17 skills
Comprehensive guide for writing and running Terraform tests. Use when creating test files (.tftest.hcl), writing test scenarios with run blocks, validating infrastructure behavior with assertions, mocking providers and data sources, testing module outputs and resource configurations, or troubleshooting Terraform test syntax and execution.
$npx -y skills add hashicorp/agent-skills --skill terraform-testInstalls into the current project.
Run `npx skills use "https://github.com/hashicorp/agent-skills" --skill "hashicorp/agent-skills/terraform-test"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/hashicorp/agent-skills" that are relevant to the current task. Run `npx skills add "https://github.com/hashicorp/agent-skills"` and select the relevant skills, then follow their instructions.