Configurable description in yaml config for generic tests
See original GitHub issueDescribe the feature
Add the ability to define descriptions in yaml files. Support the ability to use the rendered values of the test args ({{ model }}
and {{ column_name }}
by default)
Consider the following example:
# macros/reusable_tests.sql
{% test not_null(model, column_name), adapter = 'default' %}
select * from {{ model }}
where {{ column_name }} is null
{% endtest %}
# macros/schema.yml
tests:
- name: not_null
adapter: default
description: "Assert that {{ column_name }} is not null in {{ model }}"
args:
- name: model
description: "The model to test"
- name: column_name
description: "The column or expression to test"
Additional context in #1173.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Configurable description in yaml config for generic tests #3249
Describe the feature Add the ability to define descriptions in yaml files. Support the ability to use the rendered values of the test...
Read more >Test configurations | dbt Developer Hub
Tests can be configured in a few different ways: Properties within .yml definition (generic tests only, see test properties for full syntax) ...
Read more >dbt Configuration: YAML file - Biztory
Learn the basics of configuring your YAML files for dbt to change the environment your dbt project deploys to. Read the blog here....
Read more >Configuring TAS yml - LambdaTest
This sample .tas.yml configuration is generic configuration file trying to demonstrate the usage of all the above mentioend parameters.
Read more >Create and Configure Jobs and Pipelines Using YAML
When you configure a job, fields such as name , description , vm-template , and auto must precede groups like git , params...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I still want this! Mostly for the aliasing reasons discussed in #3815
Although we are closing this issue as stale, it’s not gone forever. Issues can be reopened if there is renewed community interest; add a comment to notify the maintainers.