ARTICLE AD BOX
I’ve been trying to use the Terratest shell module to execute bash commands, but I haven’t had much success. Documentation appears to be limited, and most references I found were via AI tools. Below is a snippet of the code I attempted.
package test import ( "testing" "github.com/gruntwork-io/terratest/modules/shell" "github.com/stretchr/testify/assert" ) func TestShellCommand(t *testing.T) { // insert command }The main issue I encountered is that when running go test -v, the test consistently fails to import the shell module and reports an “unknown version 0.0.0” error.
Would like to seek advice on this. Thanks in advance.
