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.4k stars 1.32k forks source link

Measuring code coverage #556

Open DanielMarquard opened 4 years ago

DanielMarquard commented 4 years ago

I'm in the process of working terratest into a comprehensive IaC pipeline with deep integration with GitLab and was curious if there was any way to track code coverage? It would be especially useful if this can be output in Cobertura XML format. Thanks!

brikis98 commented 4 years ago

We do not currently have a way to measure code coverage. If anyone has any ideas on how to add support for that, a PR is very welcome!

ghostsquad commented 3 years ago

I filed this, maybe the folks over at HashiCorp can help?

https://github.com/hashicorp/terraform/issues/27725

DanielMarquard commented 3 years ago

@ghostsquad Thanks for requesting that. This is still high on my wish list. I pinged one of their engineers in your issue, so hopefully they'll be able to get some more eyes on it.

0rc commented 3 years ago

any developments on this matter?

ogarciacar commented 1 week ago

Would you happen to have some updates on Code Coverage?