[Bug] --resource-type test
includes both data tests and unit tests
#10727
Labels
bug
Something isn't working
dbt tests
Issues related to built-in dbt testing functionality
node selection
Functionality and syntax for selecting DAG nodes
unit tests
Issues related to built-in dbt unit testing functionality
Is this a new bug in dbt-core?
Current Behavior
✅ This command only includes unit tests:
❌ But this one includes both data tests and unit tests:
dbt list --resource-type test
❌ So does this:
dbt build --resource-type test
Expected Behavior
dbt list --resource-type test
should only include data tests (and not include unit tests).Put another way,
dbt list --resource-type test
anddbt list --resource-type unit_test
should have zero overlap in their results.Likewise,
dbt build --resource-type test
should only include data tests (and not include unit tests).Steps To Reproduce
Create these files:
models/hello_world.sql
models/_properties.yml
Run these commands:
Relevant log output
Environment
Which database adapter are you using with dbt?
other (mention it in "Additional Context")
Additional Context
Same thing for all adapters.
The text was updated successfully, but these errors were encountered: