-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Support terraform test
command
#1159
Labels
enhancement
New feature or request
Comments
|
The output of
|
Example output of
|
Draft❌ Test Failed
Test Result (Click me)main.tftest.hcl... in progress
run "check_bucket_name"... fail
╷
│ Error: Test assertion failed
│
│ on main.tftest.hcl line 3, in run "check_bucket_name":
│ 3: condition = null_resource.foo.id == ""
│ ├────────────────
│ │ null_resource.foo.id is "5238291740601994744"
│
│ id is empty
╵
main.tftest.hcl... tearing down
main.tftest.hcl... fail
Failure! 0 passed, 1 failed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Feature Overview
Support posting the result of
terraform test
command.Why is the feature needed?
Terraform v1.6 or later supports
terraform test
command.https://developer.hashicorp.com/terraform/language/tests
It would be nice if tfcmt can format the result human friendly and post the result.
Example Code
$ tfcmt test -- terraform test
Configuration
note
No response
The text was updated successfully, but these errors were encountered: