Skip to content

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

@bachng2017

Description

@bachng2017

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions