What problem does it solve? Terraform modules for Azure infrastructure often ship without automated validation, so naming errors, missing tags, and broken conditional logic are only discovered during deployment. This Skill provides the patterns and commands to write and run Terraform's built-in test framework (.tftest.hcl) so module behavior is verified before any real resources are created. ## Core Features & Use Cases - Unit and Integration Tests: Write plan-mode unit tests for fast, cost-free validation and apply-mode integration tests that create and destroy real Azure resources. - Mock Providers: Simulate the azurerm provider without API calls or credentials, enabling tests in CI pipelines and local development. - Validation Coverage: Use expect_failures to confirm variable validation rules reject invalid input, and assertions to check naming, tags, and resource counts. - Use Case: You are building an Azure networking module and want to verify that subnets are created correctly, mandatory tags are applied, and invalid environment values are rejected — all before merging a pull request. ## Quick Start Ask the agent to write a plan-mode unit test file for your Terraform module that validates resource naming and mandatory tags, then run terraform test to execute it.