[Core] How to add a description for custom generic tests #5631
Labels
content
Improvements or additions to content
dbt Core
The changes proposed in this issue relate to dbt Core
size: medium
This change will take up to a week to address
Link to the page(s) on docs.getdbt.com requiring updates
https://docs.getdbt.com/best-practices/writing-custom-generic-tests
Tell us more about this update
There are two types of data tests, and users can create custom tests in both types:
When creating a custom generic test, many users want to add a description that shows up in the generated docs site.
One user described how to accomplish this goal: dbt-labs/dbt-core#2578 (comment)
e.g., do something like this:
macros/_generic_data_tests.yml
or(EDIT: the 2nd one didn't work for me)tests/generic/_generic_data_tests.yml
Note: it doesn't strictly need to be named
_generic_data_tests.yml
; it could be something else likeproperties.yml
.Reviewers/Stakeholders/SMEs
.
Related GitHub issues
Additional information
No response
The text was updated successfully, but these errors were encountered: