Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More info on test failure. #74

Open
pablo-statsig opened this issue Apr 4, 2023 · 1 comment
Open

More info on test failure. #74

pablo-statsig opened this issue Apr 4, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@pablo-statsig
Copy link

I would love to see more information on test failures (like what the tables that were created are called). I can try to help with this if you can give me code pointers.

@pablo-statsig pablo-statsig added the enhancement New feature or request label Apr 4, 2023
@LeopoldGabelmann
Copy link
Contributor

A bit late to the party, but if you are still interested, you can check out dmt_unit_test.sql, escpecially the macro test_equality (starts on line 13). The print statements is created here (line 63):

    {#- Print output if there are any rows within the table. -#}
    {%- if test_status == 1 -%}
        {{ dbt_datamocktool.print_color('{YELLOW}The test <' ~ name ~ '> failed with the differences:') }}
        {{ dbt_datamocktool.print_color('{RED}================================================================') }}
        {% do test_report.print_table() %}
        {{ dbt_datamocktool.print_color('{RED}================================================================') }}
    {%- endif -%}

Happy to look into it, if you have already specific ideas about it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants