question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Configurable description in yaml config for generic tests

See original GitHub issue

Describe 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:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
joellabescommented, Jan 4, 2022

I still want this! Mostly for the aliasing reasons discussed in #3815

0reactions
github-actions[bot]commented, Jul 12, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found