What problem does it solve? Validating Terraform modules before deployment is difficult without a structured testing approach, and misconfigured infrastructure can cause costly failures. This Skill provides comprehensive guidance for using Terraform's built-in testing framework to catch breaking changes early. ## Core Features & Use Cases - Test File Authoring: Create .tftest.hcl files with run blocks, assertions, variables, and provider configurations for unit and integration tests. - Mock Providers: Simulate provider behavior without creating real infrastructure or requiring cloud credentials (Terraform 1.7.0+). - Advanced Scenarios: Handle expect_failures for negative testing, state_key management, parallel execution, and module source testing. - Use Case: You are authoring a VPC module and want to verify that CIDR blocks, subnet counts, and outputs behave correctly. Use this Skill to write plan-mode unit tests and apply-mode integration tests that run in CI/CD. ## Quick Start Write a Terraform unit test in plan mode that validates my module creates exactly three subnets with the correct CIDR blocks.