Skip to content
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

Terraform test framework isn't discovering test files that are deeply nested #33582

Closed
liamcervante opened this issue Jul 26, 2023 · 1 comment · Fixed by #33584
Closed

Terraform test framework isn't discovering test files that are deeply nested #33582

liamcervante opened this issue Jul 26, 2023 · 1 comment · Fixed by #33584
Assignees
Labels
bug cli confirmed a Terraform Core team member has reproduced this issue

Comments

@liamcervante
Copy link
Member

Terraform Version

1.6-alpha

Terraform Configuration Files

Create a simple configuration and test file but place the test file in an alternate test directory that is nested by more than one sub directory:

  • my-repo/main.tf
  • my-repo/very/nested/tests/main.tftest.hcl

Debug Output

N/A

Expected Behavior

terraform test should be able to discover tests in directories more than one nested directory away.

Actual Behavior

terraform test reports 0 tests.

Steps to Reproduce

  1. terraform init
  2. terraform test -test-directory=./very/nested/tests

Additional Context

No response

References

Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug cli confirmed a Terraform Core team member has reproduced this issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant