Skip to content
SPECIFICTION
Get listed

Chef InSpec vs Terratest

Chef InSpec

docs.chef.io

Terratest

terratest.gruntwork.io

Side by side

FigureChef InSpecTerratest
Price from$4.92/moFree
Free planYesYes
Free trialYes—
Open sourceYes—
WindowsYes—
macOSYes—
LinuxYesYes
APIYes—
Self-hostedYes—
Plans published81
Spec score · Infrastructure Testing Tools9.4 (#1)7.8 (#13)
PurposeChef InSpec tests and audits applications and infrastructure by comparing their actual state with a desired state expressed in InSpec code.Terratest is a Go library with patterns and helper functions for testing infrastructure code.
SupportThe licensing page lists community Slack support for Free and Trial tiers and contract support for Commercial licenses.Users can ask general questions in GitHub Discussions, report bugs or request improvements through GitHub Issues, and obtain commercial support from Gruntwork.
What it doesChef InSpec is a framework and rule language that tests applications and infrastructure against desired security, compliance and policy states, reporting violations for users to remediate.Terratest is a Go library for writing automated tests for infrastructure code.

Plans

Chef InSpec

  • FreeFree
  • FreeFree
  • TrialFree
  • TrialFree
  • Business$59 a year
  • Enterprise$189 a year
  • CommercialPriced on request
  • Enterprise PlusPriced on request

Chef InSpec pricing →

Terratest

  • Apache 2.0 open-source licenseFree

Terratest pricing →

In their own words

Chef InSpec

Chef InSpec tests and audits applications and infrastructure against a desired state described in InSpec code. Its runtime framework and rule language express compliance, security and policy requirements. Reusable profiles group controls and can include versioning, platform requirements and dependencies. Resources support testing AWS, Azure, AliCloud and GCP infrastructure, and users can create custom resources. Tests can run locally or against cloud services and infrastructure such as Linux in Docker containers. Results can be exported as JSON, HTML or plain text, or sent to Chef Automate. The kitchen-inspec verifier also runs profiles through Test Kitchen. Chef offers premium CIS- and STIG-based profiles for compliance scanning. The free tier is for non-production workloads and personal, non-commercial use; the 30-day trial is for product evaluation under non-production conditions. Commercial licensing covers production and non-production workloads, with entitlements based on purchase order. Chef InSpec 7 requires EULA acceptance, and license-key requirements depend on the distribution source. Telemetry is enabled for free and trial tiers, but not commercial users.

Visit docs.chef.io

Terratest

Terratest is an open-source Go library for writing automated tests for infrastructure code. Its helpers cover Terraform, OpenTofu, Terragrunt, Packer, Helm, Docker, and Kubernetes, as well as AWS, Azure, and GCP APIs. Tests can run infrastructure tools, deploy real resources, validate the resulting environment, and remove resources afterward. Validation can use HTTP requests, API calls, SSH connections, and shell commands. The documentation covers unit, integration, and end-to-end tests, along with parallelism, retries, error handling, and static analysis. Terratest runs locally and supports configuration-compliance checks, provisioning tests, deployed checks, and policy as code. The project is free under the Apache 2.0 License. The quick start requires Go 1.26 or later and OpenTofu or Terraform for its examples. The documentation recommends cleaning up after tests because they may create resources in real environments. General questions and issue reports go through GitHub Discussions and Issues; Gruntwork offers commercial support to companies using Terratest in production. The v1 line receives security fixes only while v2 is in development.

Visit terratest.gruntwork.io