terraform-test

Run Terraform unit and integration tests for Azure infrastructure.

Updated Apr 11, 2026
One-click install
npx skills add https://github.com/jgezelscorp/Apex --skill terraform-test-jgezelscorp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terraform-test
Source: https://github.com/jgezelscorp/Apex/tree/main/.github/skills/terraform-test
Command: npx skills add https://github.com/jgezelscorp/Apex --skill terraform-test-jgezelscorp

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

The Terraform Test Skill solves the problem of manually validating Terraform infrastructure configurations, making it easy to catch errors and ensure compliance before deployment.

Core Features & Use Cases

  • Automated Testing: Run Terraform tests automatically, reducing the time and effort spent on manual testing.
  • Mock Providers: Simulate Azure provider behavior for unit testing without API calls, enabling faster development and testing in CI environments.
  • Use Case: Test Terraform configurations with unit tests and integration tests, ensuring your infrastructure is well-architected and compliant.

Quick Start

Use the terraform-test skill to run tests for your Terraform configurations.

Frequently Asked Questions about terraform-test

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

FAQPage Schema
How do I automate Terraform testing for Azure infrastructure configurations?

Automate Terraform testing by executing .tftest.hcl files to validate Azure infrastructure configurations with unit and integration tests. This catches deployment errors and ensures compliance automatically without manual validation.

What Terraform version is required to use mock providers for unit testing?

Mock providers require Terraform version 1.7 or higher for simulated provider behavior. Test blocks need version 1.6 and parallel execution requires version 1.9. This enables fast unit testing without making actual API calls to Azure.

How does testing Terraform with mock providers work in CI environments?

Testing Terraform with mock providers works by simulating Azure provider behavior using mock_provider blocks. This bypasses actual API calls, enabling faster automated validation and integration testing directly within your CI/CD pipelines.

Can I run parallel execution for Terraform test blocks?

Yes, parallel execution for Terraform test blocks is supported starting from Terraform version 1.9. Running tests in parallel reduces overall execution time when validating multiple infrastructure configurations simultaneously.

What is the best way to validate infrastructure as code before deployment?

Validating infrastructure as code is best achieved by running automated unit and integration tests against Terraform configurations. Using .tftest.hcl files ensures your infrastructure is well-architected and compliant before any deployment occurs.

Why do I need automated testing for my Terraform configurations?

Automated testing for Terraform configurations is needed to reduce manual validation effort and catch infrastructure errors early. It ensures your configurations remain well-architected and compliant before deployment to Azure environments.