https://dagster.io/ logo
#dagster-support
Title
# dagster-support
r

Ruoyu Qian

09/28/2022, 3:50 PM
Hey is it possible to add test to
define_asset_job()
where I can not only materialize dbt models but also test them? So currently I have a sensor that got triggered when dbt model get materialized successfully by dagster. I want the sensor to be trigger not but
dbt run
but by
dbt test
o

owen

09/28/2022, 10:33 PM
hi @Ruoyu Qian! right now, there's no way to separate these out into different steps, but dbt does have a
dbt build
command which will run the tests in the same command as your dbt models. You can
load_assets_from_dbt_project(..., use_build_command=True)
to enable this behavior.
8 Views