Terratest is a Go library that provides patterns and helper functions for testing infrastructure, with 1st-class support for Terraform, Packer, Docker, Kubernetes, AWS, GCP, and more. Create a file ending in _test.go and run tests with the go test command. E.g., go test my_test.go. Use Terratest to execute your real IaC tools (e.g., Terraform, Packer, etc.) to deploy real infrastructure (e.g., servers) in a real environment (e.g., AWS). Use the tools built into Terratest to validate that the infrastructure works correctly in that environment by making HTTP requests, API calls, SSH connections, etc. Undeploy everything at the end of the test. Write automated tests for infrastructure code, including the code you write for use with tools such as Terraform, Kubernetes, Docker, and Packer. This code is released under the Apache 2.0 License.

Features

  • Undeploy everything at the end of the test
  • Write test code using Go
  • Use Terratest to deploy infrastructure
  • Validate infrastructure with Terratest
  • Execute commands on servers over SSH
  • Work with Kubernetes APIs

Project Samples

Project Activity

See All Activity >

License

Apache License V2.0

Follow Terratest

Terratest Web Site

Other Useful Business Software
Build on Google Cloud with $300 in Free Credit Icon
Build on Google Cloud with $300 in Free Credit

New to Google Cloud? Get $300 in free credit to explore Compute Engine, BigQuery, Cloud Run, Vertex AI, and 150+ other products.

Start your next project with $300 in free Google Cloud credit. Spin up VMs, run containers, query exabytes in BigQuery, or build AI apps with Vertex AI and Gemini. Once your credits are used, keep building with 20+ products with free monthly usage, including Compute Engine, Cloud Storage, GKE, and Cloud Run functions. Sign up to start building right away.
Start Free Trial
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Terratest!

Additional Project Details

Programming Language

Go

Related Categories

Go Software Testing Tool, Go Test Frameworks, Go Automated Testing Tool

Registered

2022-03-31