gruntwork-io / terratest

Terratest is a Go library that makes it easier to write automated tests for your infrastructure code.
https://terratest.gruntwork.io/
Apache License 2.0
7.45k stars 1.32k forks source link

Terratest Code Coverage #1141

Open ASHR4 opened 2 years ago

ASHR4 commented 2 years ago

Just started using Terratest to test Terraform :) I want to generate code coverage to ensure all my IaC is covered.

There was an issue that has since been closed with no answers :( #27725

If anyone has any insight on how they/can do implement please let me know, as I would greatly appreciate the insight

Thanks

2fast-2furious commented 2 years ago

I am looking for the same thing and have been following #27725 and #556 . I was thinking of parsing the terraform plan output and checking against my Terratest ? I also have never measured test coverage.

halink0803 commented 10 months ago

I think coverage is one important values for testing. Any update on this?

ogarciacar commented 2 months ago

Would you happen to have some updates on Code Coverage?