re-data icon indicating copy to clipboard operation
re-data copied to clipboard

[BUG] test reports as success when wrong metric is set

Open bachng2017 opened this issue 2 years ago • 0 comments

Describe the bug With current implement, when user set a wrong metric (type-missed or any reason), the test always succeed https://github.com/re-data/dbt-re-data/blob/main/macros/tests/test_metrics.sql#L6

Although it might be by-design feature but reporting the situation as a failure might be more intuitive.

Expected behavior Report the test as failure when wrong metric is set.

To Reproduce Run a test with not-existed. For example row_countx instead row_count

Screenshots Logs and additional context

bachng2017 avatar Mar 26 '23 05:03 bachng2017