`meltano invoke dbt:run` correctly only runs the m...
# troubleshooting
j
meltano invoke dbt:run
correctly only runs the models I’ve listed in my
DBT_MODELS
env var. But
meltano invoke dbt:test
doesn’t seem to follow suit. It will instead run all tests. Am I missing something?
d
@josh_lloyd Is the “test” command defined with “—models $DBT_MODELS”?
j
I’m not sure where that’s “defined”
or rather where that would be defined if it is defined somewhere
So it does not currently have
—models $DBT_MODELS
unlike
run
So you can either redefine the command in your own meltano.yml, or explicitly add the models flag to your invoke call
j
ah, I see
just tried with
DBT_MODELS
defined in a local
.env
but that didn’t work. but it does if I explicitly put it in the command. I’ll try to see if I can redefine it in my yml. Thanks for the help!!