[Core] Enable --resource-type
and --exclude-resource-type
CLI flags and environment variables for dbt test
#6101
Labels
content
Improvements or additions to content
dbt Core
The changes proposed in this issue relate to dbt Core
dbt-core v1.9
improvement
Use this when an area of the docs needs improvement as it's currently unclear
At a minimum, update body to include a link to the page on docs.getdbt.com requiring updates and what part(s) of the page you would like to see updated.
Originating from this issue: dbt-labs/dbt-core#10656
Pull request: dbt-labs/dbt-core#10706
Documentation to update
At minimum (there may be other relevant pages):
Purpose
Be able to choose which test resources are included when executing the
dbt test
subcommand.For example, be able to exclude unit tests. Or only run unit tests.
Code examples
dbt
test
now enables passing values likeunit_tests
,tests
, etc. in the--resource-type
/--exclude-resource-type
CLI flags (or in the environment variablesDBT_RESOURCE_TYPES
/DBT_EXCLUDE_RESOURCE_TYPES
).Example 1 - CLI flags
Example 2 - environment variables
The text was updated successfully, but these errors were encountered: