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
Support multiple coverage doc/test save formats #29
Comments
Something like this but prettier haha
|
Hey @rloredo! Thanks for your interest in the project and sorry for replying so late. If you are using dbt-coverage/dbt_coverage/__init__.py Lines 603 to 610 in 468df29
However, it seems that the function does not return the coverage report once it finishes computing. We could definitely add this and then you can do whatever you want with the report - save it in a CSV or even analyze it directly in a Jupyter notebook or Python code. import dbt_coverage
report = dbt_coverage.do_compute(...)
report = report.to_dict()
# Load to pandas, write to CSV, do whatever Would that seem like a good solution to you? |
Hi, @sweco, Thank you for your answer. |
Alright, I'll add the missing return to the |
Awesome, I'm not in a rush since I wrote that for a local/personal fork (it was an easy fix). Thank you for the idea :) |
This allows for arbitrary analysis of the coverage report by the clients.
This allows for arbitrary analysis of the coverage report by the clients.
From my understanding we can only save .json files as a result of dbt-coverage compute.
It would be nice if we could pick other formats, for example .csv
That way we can put those files as seeds and write to the db.
The text was updated successfully, but these errors were encountered: