terraform-test

Automate Terraform unit and integration testing for Azure infrastructure.

6|2|Updated Jan 29, 2026
One-click install
npx skills add https://github.com/jonathan-vella/azure-smb-rf --skill terraform-test-jonathan-vella
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terraform-test
Source: https://github.com/jonathan-vella/azure-smb-rf/tree/main/.github/skills/terraform-test
Command: npx skills add https://github.com/jonathan-vella/azure-smb-rf --skill terraform-test-jonathan-vella

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires terraform, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the testing and validation of Terraform configurations for Azure infrastructure, ensuring code quality and reliability before deployment.

Core Features & Use Cases

  • Unit Testing: Write and execute unit tests for Terraform modules to validate logic and behavior.
  • Integration Testing: Test Terraform configurations in an apply mode to create real infrastructure and validate integration.
  • Mock Providers: Simulate Azure providers for unit tests without real API calls.
  • Use Case: When developing a Terraform module for Azure, use this Skill to create a suite of tests that cover different scenarios and ensure the module works as expected.

Quick Start

Run tests for your Terraform module by executing 'terraform test' in the root directory of your module.

Frequently Asked Questions about terraform-test

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

FAQPage Schema
How do I test Terraform configurations for Azure infrastructure?

To test Terraform configurations for Azure infrastructure, you can use automated unit and integration testing capabilities that validate module logic and apply behavior. This ensures code quality and reliability before deployment.

What is the best way to run unit tests on Terraform modules without making real Azure API calls?

The best way to run unit tests on Terraform modules without real Azure API calls is by using mock providers. Mock providers simulate Azure interactions to validate module logic and behavior efficiently.

Do I need a specific Terraform version to run Azure infrastructure tests?

Yes, you need Terraform version 1.6 or higher to run Azure infrastructure tests. This version requirement ensures compatibility with the testing and validation features needed for your configurations.

How do I execute integration testing for Terraform configurations in apply mode?

To execute integration testing for Terraform configurations, run tests in apply mode to create real Azure infrastructure. This validates the actual integration and deployment behavior of your modules.

Can I validate Terraform Azure modules directly from the command line?

Yes, you can validate Terraform Azure modules directly by executing 'terraform test' in the root directory of your module. This command runs your configured test suite to cover different scenarios.