-
Notifications
You must be signed in to change notification settings - Fork 10.1k
Open
Labels
Description
Terraform Version
Terraform v1.8.4
on linux_amd64Use Cases
There doesn't seem to be a way to generate unit test coverage from a Terraform test. None of the current output options address coverage.
As HCL isn't an executable language where lines of code are run sequentially, I can see how this might be a hard-ish problem. However, it seems possible to mark a resource and/or attribute as "covered" if a test case evaluated it in the dependency graph of the test.
Attempted Solutions
The output options only report "passed, skipped, or failed" at the test case level. There's no concept of coverage.
Proposal
No response
References
No response
laughedelic, johan3141592, dhrkumar and SebDangerfieldGMSL