schema-coverage

Identifies gaps between Terraform schema definitions and acceptance test coverage for Go/Terraform Plugin SDK resources.

208|148|Updated Oct 27, 2021
One-click install
npx skills add https://github.com/elastic/terraform-provider-elasticstack --skill schema-coverage
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: schema-coverage
Source: https://github.com/elastic/terraform-provider-elasticstack/tree/main/.agents/skills/schema-coverage
Command: npx skills add https://github.com/elastic/terraform-provider-elasticstack --skill schema-coverage

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Analyzes a Terraform resource schema and acceptance tests to surface coverage gaps and guide improvements to test coverage.

Core Features & Use Cases

  • Compare the resource schema against acceptance tests to identify missing or under-tested attributes and blocks.
  • Generate a prioritized report highlighting coverage gaps and potential test enhancements.
  • Help teams plan incremental test improvements for Terraform providers and resources.

Quick Start

Provide the Terraform resource and its acceptance tests to analyze, and run this skill to generate a coverage report.

Frequently Asked Questions about schema-coverage

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check Terraform acceptance test coverage against a resource schema?

To check Terraform acceptance test coverage, compare the resource schema against configured attributes, asserted checks, and update coverage across test steps to identify gaps and guide improvements.

What is Terraform schema coverage analysis?

Terraform schema coverage analysis finds and reports gaps between a resource schema and its acceptance tests, scanning configured attributes and update coverage to produce a prioritized, actionable report.

How do I find untested attributes in Terraform provider acceptance tests?

You find untested attributes by scanning the resource schema and acceptance tests for configured attributes, asserted checks, and update coverage across test steps to surface missing or under-tested blocks.

Does schema coverage analysis work with both Go SDK and Terraform plugin SDK schemas?

Yes, schema coverage analysis applies to Terraform resources with either Go SDK or Terraform plugin SDK schemas, scanning configured attributes and update coverage across test steps to identify gaps.

How do I generate a prioritized report for missing Terraform resource tests?

Generate a prioritized, actionable report by providing the Terraform resource and its acceptance tests to analyze, which details schema attributes to cover and recommends specific tests to add.

What are the limitations of analyzing Terraform schema gaps in acceptance tests?

Schema gap analysis is limited to Terraform resources with Go SDK or Terraform plugin SDK schemas, focusing on configured attributes, asserted checks, and update coverage across existing test steps.