I am trying to provide documentation for a dbt tests.
I have created a test validating the sum of 2 numbers (of course, this is just an example).
{% test test_sum(summand_a, summand_b, total) %}
SELECT
{{summand_a}} + {{summand_b}} AS result
WHERE result <> {{total}}
{% endtest %}
I have created a test.yml
file next to the test with the following content:
version: 2
tests:
- name: test_sum
description: 'This test validates the sum of 2 numbers'
When generating dbt docs via dbt docs generate
the test does not show any documentation.
I expect the test do be documented when serving the docs via dbt docs serve