Model level tests to do not run when using -m
flag (e.g., relationships and others)
#3706
Closed
1 of 5 tasks
-m
flag (e.g., relationships and others)
#3706
Describe the bug
Model level tests do not run when using the
-m
flag, e.g,dbt test -m some_model
command. However, model level tests do run when runningdbt test
command.Steps To Reproduce
equal_rowcount
andrelationships
forsome_model
).From
test.yml
:dbt test -m some_model
.Expected behavior
Expected 4 tests to run.
Actual results
Only 2 tests executed.
When running
dbt test -m fact_event
:Interestingly, when running
dbt test
ordbt test -m path/to/models
, all 4 tests are executed.When running
dbt test -m path/to/models
:Screenshots and log output
See above.
System information
Which database are you using dbt with?
The output of
dbt --version
:The operating system you're using:
macOS Big Sur 11.4
The output of
python --version
:Python 3.8.10
Additional context
This bug impacts both the native dbt tests and tests from the dbt_utils package (I have only tested these two).
The text was updated successfully, but these errors were encountered: