Terratest provides a variety of helper functions and patterns for common infrastructure testing tasks. Learn more about Terratest basic usage.
Learn how to start with Terratest.
Examples are the best way to start testing Terraform, Docker, Packer, Kubernetes, AWS, GCP, and more with Terratest.
Learn more about Terratest modules and how they can help you test different types infrastructure.
Browse Terratest methods and types in GoDoc.
See the talk about unit tests, integration tests, end-to-end tests, dependency injection, test parallelism, retries, error handling, and static analysis.
Learn more about testing environments.
Learn how to avoid conflicts due to duplicated identifiers.
Since automated tests with Terratest deploy real resources into real environments, you'll want to make sure your tests always cleanup after themselves.
Long-running infrastructure tests may exceed timeouts or can be killed if they do not prompt logs.
Learn more about `terratest_log_parser`.
Since Go 1.10, test results are automatically cached. See how to turn off caching test results.
Learn how to handle errors.
If you're writing scripts (i.e., Bash, Python, or Go), you should be able to test them locally using Docker. Docker containers typically build 10x faster and start 100x faster than real servers.
Learn more about Terratest's `test_structure`.
Learn more about alternatives to Terratest, and how Terratest compares to other testing tools.
Test that your Terraform configuration results in consistent deployments.
Pick EC2 instance types that are available in the current AWS region.
Additional tools and plugins for terratest to make integration with existing workflows easier.
Terratest is an open source project, and contributions from the community are very welcome!
This code is released under the Apache 2.0 License. Read more here.
We couldn’t find any results matching your search.
Your entire infrastructure. Defined as code. In about a day.