Running test using Terratest but it throws "no test files" error

662 Views Asked by At

I am working on terratest for terraform in Azure. Currently making use of an example code as given in the following link- https://learn.microsoft.com/en-us/azure/developer/terraform/best-practices-end-to-end-testing.

When I try to run go test -v it gives out [no test files], not sure why.

Can anyone help?

1

There are 1 best solutions below

1
On

You need to make sure that when you are go test to be inside the test directory. cd into test directory and than run the command