Closed barberadam closed 7 months ago
Hi @barberadam,
could you please check the config value for test-paths
in your dbt_project.ym
? Are you sure that your test file is in the folder specified there?
@psousa50 Yup that was it! I figured it was something silly like that but couldn't find it -- might be nice to add it to the docs but it doesn't look like others have missed that step.
Thanks!
No worries 🙂 . This is a dbt
configuration, not a dbt-unit-testing
configuration, so it's in the dbt
docs.
I'm trying to test out this library as a unit testing solution for our project. My test is set up like so (redacting some names):
This model uses no
refs
, its allsources
, I've replaced thosesource
macros withdbt_unit_testing.source
. Note I did also set theuse_qualified_sources
parameter in mydbt_project.yml
.If I attempt to run with
dbt test -s tag:unit-test
I get:If I run
dbt build -s tag:unit-test
the test actually runs, so I know the config is mostly right.I'm guessing I have some incompatible config but not sure where to start looking.
I'm on 1.6.0 for
dbt
and using latest release (v0.4.12
) of this package.