elementary-data / elementary

The dbt-native data observability solution for data & analytics engineers. Monitor your data pipelines in minutes. Available as self-hosted or cloud service with premium features.
https://www.elementary-data.com/
Apache License 2.0
1.93k stars 167 forks source link

elementary doesnt insert row into elementary_test_results when execute dbt unit-tests #1709

Open megetron3 opened 1 month ago

megetron3 commented 1 month ago

i am using dbt 1.8 with unitest new feature and the latest elementary package. executing data tests generates the elementary_test_results table correctly. executing against unittest test will not insert row to the table. here is example test:

To Reproduce Use a simple dbt unit test:

unit_tests:
  - name: test_dora
    model: my_model
  ...

Expected behavior expecting the elementary_test_results to be populated with a row on run-end hook

haritamar commented 1 month ago

Hi @megetron3 ! Actually, the elementary dbt package doesn't support unit tests right now.

I'm not 100% sure if unit tests results have the same structure and can be added easily, it may require some research. If you're interested in contributing this I can provide some directions on where to look.

Thanks, Itamar