slidoapp / dbt-coverage

One-stop-shop for docs and test coverage of dbt projects.
MIT License
190 stars 26 forks source link

could you add ability produce a coverage report in cobertura format #39

Open cedric-orange opened 2 years ago

cedric-orange commented 2 years ago

To be able to retrieve dbt-coverage output in gitlab, a cobertura format is needed.

See: https://docs.gitlab.com/ee/ci/yaml/artifacts_reports.html#artifactsreportscoverage_report

Could you add a command line argument to choose output format ? (json or xml-cobertura)

mrshu commented 1 year ago

Thanks for the idea @cedric-orange! It does indeed something worth adding in the future!

JackWolverson commented 1 year ago

Is there any plans for this to be looked into/implemented soon ? would be really useful for pipelines in ADO

Cquad commented 1 year ago

Cobertura reports generation can be found here: https://github.com/nedbat/coveragepy/blob/master/coverage/xmlreport.py#L30

I wonder why dbt-coverage is not also a plugin for coverage.py ? https://buildmedia.readthedocs.org/media/pdf/coverage/latest/coverage.pdf#subsection.6.9.6

mrshu commented 1 year ago

@Cquad unfortunately I am afraid dbt-coverage cannot really be considered a plugin for coverage.py.

@JackWolverson we do not really have a timeline here but we'd certainly be very enthusiastic about any PRs that would add this sort of functionality 🙂