Add docs on best practice to only run unit tests in dev and CI and exclude them from prod #5439
Labels
content
Improvements or additions to content
dbt-core v1.8
improvement
Use this when an area of the docs needs improvement as it's currently unclear
unit testing
docs for 1.8 unit testing
Milestone
Contributions
Link to the page on docs.getdbt.com requiring updates
when should I actually be executing these unit tests?
Best practice to only run unit tests in dev and CI, exclude them in prod (mock data is static, won’t change - waste to run in prod)
Since my unit tests are only defined on these static inputs, there's actually no reason for me to run these unit tests in production.
DBT_EXCLUDE_RESOURCE_TYPES
dbt build
in production, so I don't waste compute running these when I don't need to since my static inputs won't be changing.What part(s) of the page would you like to see updated?
one of the unit test pages
Additional information
No response
The text was updated successfully, but these errors were encountered: