provider-test-patterns
A HashiCorp skill with patterns for Terraform provider acceptance tests written with terraform-plugin-testing and the Plugin Framework.
What the skill teaches
A HashiCorp skill with patterns for Terraform provider acceptance tests written with terraform-plugin-testing and the Plugin Framework. It covers test case and step fields, state checks including custom ones, plan checks, comparing values across steps, configuration helpers, import testing, sweepers for leftover resources, common scenarios such as basic, update, disappears, validation and regression tests, and testing ephemeral resources with the echo provider. Reference files go deeper on checks and sweepers.
Capabilities
- Structure provider acceptance tests
- Use state checks and plan checks
- Test resource import
- Write sweepers for leftover test resources
- Test ephemeral resources
About
- Publisher
- HashiCorp
- Tool
- Terraform
Install
- Run this to add it to Any client:
npx skills add hashicorp/agent-skills/plugins/terraform/skills/provider-test-patterns
What's inside
- references/checks.md
- references/ephemeral.md
- references/sweepers.md
MCP servers and skills can run code on your computer and act on your data. Review the source before installing.
Details
| Fact | Value | Source |
|---|---|---|
| Type | Skill | |
| Tool | Terraform | |
| Publisher | HashiCorp | source |
| Official status | Officialpublished in HashiCorp's own GitHub organisation; contributions restricted to HashiCorp-internal contributors | source |
| Status | active | source |
| Needs an API key or sign-in | Not stated in its documentation | |
| Includes scripts | No | source |
| Platforms | Not stated in its documentation | |
| AI clients | Not stated in its documentation | |
| Licence | MPL-2.0 | source |
| Pricing | Not stated in its documentation | |
| Activity | Last commit Nov 4, 2026925 GitHub starsDownload data not available (not on npm or PyPI) | source |
| Links | Repository |
Sources
- Skill file (SKILL.md)github.com/hashicorp/agent-skillsNov 10, 2026
- README (README.md)github.com/hashicorp/agent-skillsNov 12, 2026
- Licence file (LICENSE)github.com/hashicorp/agent-skills · Backs: LicenceNov 12, 2026
- GitHub repositorygithub.com/hashicorp/agent-skills · Backs: Official status, Publisher, Activity, LicenceNov 11, 2026
- Folder in the repository (provider-test-patterns)github.com/hashicorp/agent-skills · Backs: Includes scriptsNov 10, 2026
- File in the repository (SKILLS.md)github.com/hashicorp/agent-skills · Backs: StatusNov 12, 2026