dbt-coverage icon indicating copy to clipboard operation
dbt-coverage copied to clipboard

Display coverage doc/test result on gitlab badges

Open kelvinheng92 opened this issue 3 years ago • 3 comments

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

kelvinheng92 avatar Nov 22 '22 00:11 kelvinheng92

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!

mrshu avatar Nov 22 '22 07:11 mrshu

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

kelvinheng92 avatar Nov 22 '22 07:11 kelvinheng92

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?

mrshu avatar Nov 22 '22 07:11 mrshu