New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can terraform init
fully initialize (for tests) if no .tf
files exist the current working directory?
#35040
Comments
Hi @brettcurtis, thanks for the feature request. Is there a reason you can't place the test files / test directory within your With that change you also wouldn't need to create the testing modules you have within the |
Good questions, we find developers tend to write better modules if the tests are a representation of how the user will consume them. This is why we setup the fixtures the way we do, we also find they provided good examples for consumers of the modules since they do set the system up for testing. As far as placing the test in global that would be reasonable for this module (simple use case) maybe but more complex modules we'd have Thanks! |
Terraform Version
Use Cases
With
terraform test
you can now run tests from the root of a repo even if the root has no.tf
files. A directory structure like this can't run tests unless anempty.tf
file is added because we can't fully initialize withterraform init
.This is a current test/WA:
Attempted Solutions
add empty.tf, change directory structure.
Proposal
No response
References
No response
The text was updated successfully, but these errors were encountered: