Compilation error While running Custom Generic Test


I am getting the below error while running custom generic test.Can anyone help me out how to fix this error?
‘test_Quantity_greater_than_10’ is undefined. This can happen when calling a macro that does not exist. Check for typos and/or install package dependencies with “dbt deps”.

version: 2

  • name: STG_PRODUCT
    • name: quantity
      • Quantity_greater_than_10

{% test Quantity_greater_than_10(model,column_name) %}

with Product as (
select {{column_name}} as quantity
from {{model}}

select * from Product
where quantity>10

{% endtest %}

your test name is ‘Quantity_greater_than_10’. in the error test name mentioned is ‘test_Quantity_greater_than_10’

check the name

Note: @Arun originally posted this reply in Slack. It might not have transferred perfectly.

can you pls post your yml fie here where you have configured tests