Skip to content

Commit

Permalink
Add data tests block for custom singular tests (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
joellabes authored Dec 4, 2024
1 parent c7bc383 commit d2d54dc
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
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"

0 comments on commit d2d54dc

Please sign in to comment.