Skip to content
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

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

Open
cedric-orange opened this issue Aug 10, 2022 · 4 comments
Open

Comments

@cedric-orange
Copy link

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
Copy link
Contributor

mrshu commented Oct 19, 2022

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

@JackWolverson
Copy link

JackWolverson commented Feb 8, 2023

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

@Cquad
Copy link
Contributor

Cquad commented Feb 8, 2023

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
Copy link
Contributor

mrshu commented Feb 8, 2023

@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 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants