Terratest
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.
https://terratest.gruntwork.io/
Tutorials
- 5 Lessons Learned From Writing Over 300,000 Lines of Infrastructure Code
- How can you test your Infrastructure
- Testing For Infrastructure Pros (Test Your Terraform Code) 2021
- End To End Testing On Terraform With Terratest
- Testing Terraform modules with Terratest
- Test-driven development (TDD) for infrastructure
- How to test infrastructure as code - Terraform/TerraTest/Golang/Azure REST API