Can we use DBT as a Code Coverage Tool and what kind of Code Coverage Report Formats does DBT generate?

Hi Team,

We are trying to generate Code Coverage for SQL code using DBT tool. We need to understand the set up and configuration for dbt tool. So regarding DBT, I have the below queries.

  1. Can we use DBT as a Code Coverage Tool ?

If Yes,
2. What kind of Code Coverage Report Formats does DBT generates (Ex: HTML, XML or CSV).

  1. Is there any sample repository to generate Code Coverage for SQL using DBT tool.

Thanks,
Murali Sulam

Hi Team,

Any update on the above query?

Regards,
Murali Sulam

Hi Team,

It’s been almost a month I have raised this query, but still now I didn’t get any Update. Could you please let me know the update on the above mentioned query.

Thanks,
Murali Sulam

Hey @smk.yadav22

Have you checked this dbt package GitHub - slidoapp/dbt-coverage: One-stop-shop for docs and test coverage of dbt projects.?

It reports how well your models are documented and how many models have associated tests.