# How to avoid run hooks as part of dbt test

**URL:** <https://discourse.getdbt.com/t/how-to-avoid-run-hooks-as-part-of-dbt-test/15575>\
**Category:** Help\
**Created:** [September 25, 2024, 4:55am UTC](https://discourse.getdbt.com/t/how-to-avoid-run-hooks-as-part-of-dbt-test/15575 "2024-09-25T04:55:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sam021083](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@sam021083](https://discourse.getdbt.com/u/sam021083)\
**Post date:** [September 25, 2024, 4:55am UTC](https://discourse.getdbt.com/t/how-to-avoid-run-hooks-as-part-of-dbt-test/15575/1 "2024-09-25T04:55:17Z")

</div>

Hi,

We are using dbt run and dbt test for our dbt execution. Due to some additional requirements we are using on-run-start and on-run-end hooks in dbt\_project.yaml.  
However, after upgrading to the latest we observed that, on-run-start and on-run-end executed twice as part of dbt run and dbt test.  
Is there anyway we can avoid this in dbt test?  
Thanks
