elementary icon indicating copy to clipboard operation
elementary copied to clipboard

Feature - Adding custom descriptions to tests

Open hasnan-din opened this issue 3 years ago • 1 comments

It would be great to have custom names & possibly even descriptions as part of the variables used when creating tests. It would help a lot for interpreting results and displaying the outcome to end users!

hasnan-din avatar Aug 26 '22 10:08 hasnan-din

Thank you for opening this issue @hasnan-din!

These are actually 2 feature requests:

  1. Custom names for tests
  2. Descriptions for tests

About custom names - This is supported in dbt since 1.1. Config would look like this:

        tests:
          - name: unexpected_order_status    # custom name for test
            test_name: accepted_values      # name of the generic test to apply

However, test description would be a great way to provide context in alerts and report! I'll leave this issue for the description, and opened 2 additional issues to use the dbt custom name in alerts and report.

Maayan-s avatar Aug 29 '22 09:08 Maayan-s