Feature: Add tests to dbt docs UI and references #1051
Labels
dbt-docs
[dbt feature] documentation site, powered by metadata artifacts
enhancement
New feature or request
Milestone
Feature
Feature description
Specific requests:
Per a discussion in slack, I'd like to see custom data tests within the dbt docs UI. At a minimum having the tests viewable via the sidebar would be great (possibly along with
dbt_project.yml
andprofiles.yml
).I'd also like to be able to link to the tests either using the explicit link
[my_link_label](/#!/model/model.my_package_name.my_model_name)
or by using{{ tests('assert_my_data') }}
.To add on to that, I would love if I could reference a test within a dbt model to indicate that it's relevant to that part of the model. For example, I have a CTE here
and it’d be cool to reference the test w/in the CTE:
And all that test jinja would do is create a clickable link (or modal) to pop-up the relevant test / documentation.
Who will this benefit?
Any team writing a non-zero amount of tests (which should be all teams, right?).
The text was updated successfully, but these errors were encountered: