Skip to content
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

Add data tests block for custom singular tests #178

Merged
merged 1 commit into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions schemas/latest/dbt_yml_files-latest.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,25 @@
}
}
},
"data_tests":{
"type": "array",
"description": "Add descriptions to custom singular tests",
"items": {
"type": "object",
"required": ["name"],
"properties": {
"name": {
"type": "string",
"description": "The name of the singular test"
},
"description":{
"type": "string",
"description": "A description of the test's purpose, how it is implemented, and perhaps what you should do if it starts failing."
}
},
"additionalProperties": false
}
},
"exposures": {
"type": "array",
"items": {
Expand Down
6 changes: 5 additions & 1 deletion tests/latest/valid/dbt_yml_files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -326,4 +326,8 @@ sources:
- name: my_unique_column
description: This sure is a column
data_tests:
- unique
- unique

data_tests:
- name: my_cool_custom_test
description: "This checks that all numbers are positive, if it fails you should talk to data engineering"
Loading