Skip to content
Kitbay
Submit
SkillOfficialactive

provider-test-patterns

MPL-2.0Updated on Nov 4, 2026925GitHub stars

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