Customize the naming of generic tests

Hi!

In a dbt project we have the need to categorize the test results generated by store_failures according to their related model and column. One issue with the default naming is that with long names the hashing function potentially removes any track of the model / column in the test name, making it very hard to track the test results for a specific column.

I have tried to achieve this by customizing the test names into dynamically using the model, column and default test name in this order - but I can’t find a way to make it work. This should be defined on a global level in the project, so that I don’t have to specify this for every test. It should work for any generic test, including tests from packages and custom generic tests.

Any ideas? Thank you in advance!

1 Like

I know I am a bit late to the party, but might this help as a way to store the test outcomes? You will have access to all the information using this results object, in this post you can see an elaborate example.