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

cli: Support test sub-command #3687

Open
1 task done
so0k opened this issue Aug 2, 2024 · 0 comments
Open
1 task done

cli: Support test sub-command #3687

so0k opened this issue Aug 2, 2024 · 0 comments
Labels
enhancement New feature or request new Un-triaged issue

Comments

@so0k
Copy link

so0k commented Aug 2, 2024

Description

Currently the cdktf-cli is able to run most terraform commands but does not support test.

I think there is a progressive way to support this command:

  1. Allow users to write plain *.tftest.hcl next to typescript code which get copied over into the app.manifest.forStack(..).workingDirectory, simply run terraform test directly in the synthesized directory)
  2. Add Constructs for HCL tests which synth to the test directory for the stack

The first step is a simple(r) addition to the CLI without adding more complexity to the lib

The second step adds full Terraform tests support to the CDK and requires a more well designed proposal.

References

No response

Help Wanted

  • I'm interested in contributing a fix myself

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment
@so0k so0k added enhancement New feature or request new Un-triaged issue labels Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request new Un-triaged issue
Projects
None yet
Development

No branches or pull requests

1 participant