slidoapp / dbt-coverage

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

Display coverage doc/test result on gitlab badges #50

Open kelvinheng92 opened 1 year ago

kelvinheng92 commented 1 year ago

Hi team,

I am wondering whether it is already possible for me to display the coverage doc/test result as a percentage on gitlab badges. Please see similar example for python unit test below image

Thank you

mrshu commented 1 year ago

Hi @kelvinheng92, would you mind sharing what is the URL of the coverage image in your picture? I think we could make dbt-coverage work in such a way, but it will take a bit of work to get there 🙂

Thanks!

kelvinheng92 commented 1 year ago

It seems to be auto-generated by pytest runs. image

mrshu commented 1 year ago

Thanks @kelvinheng92, that's interesting.

Do you think that outputting the report in the Cobertura XML format (as mentioned in #39) might be enough to do this?