Could you please share your suggestion for the Unit Testing the Terraform code in Enterprise Environment? Since we are using TFE as Landing app for our Infra Provisioning, we explored the Terratest as a option but we have lot of challenges to integrate the same in Enterprise environment.
So could you pls share some suitable Enterprise tool
When unit testing a shared module it’s typical to perform development and testing locally on your workstation, using remote API credentials that belong to a development environment that’s totally separate from any non-development environment.
This approach avoids the risk that development activities might damage real infrastructure, and also typically provides faster feedback while iterating due to Terraform operations running on your local computer rather than in a remote system.
Once you have finished development you would then publish the updated module and use it from your Terraform Enterprise workspaces as appropriate.