Hello! Newbie to elementary here. I am trying to g...
# community-support
j
Hello! Newbie to elementary here. I am trying to get elementary up and running, and here are my steps:
Copy code
dbt deps
pip install 'elementary-data[snowflake]'
dbt run --select elementary
dbt test
edr report
Unfortunately, the report says
no tests
, I feel like I am missing a step or two. Can someone please help me get started? Eventually, I woudl like to have this incorporated with our github actions daily refresh and send a report to slack but I would like to see it working in my local environment first.
✅ 1
@Young-Eun Kim sorry for the ping! It looks like you have gotten the part where I am struggling to work. Would you be able to help me get started? Thank you 🙂
y
hi fellow newbie! my suspicion here is that you've started a new dbt project for elementary? elementary is using pre and post run hooks in existing dbt projects to execute tests.
if not, then i would need to see an example config of your tests in your usual dbt model .yml to see why it might not be getting picked up.
j
when I give the
dbt test
command, it runs all the model tests that I would expect it to run.. and there are elementary tests that are in that list too. let me get you an example.. but while I do that, perhaps you can share the steps you are running? does
dbt run {all models}
need to happen? I am only running
dbt test
here is a sample test
y
i didn't have to, but my models were already materialized before installing elementary. i did run the recommended
dbt run --select elementary
as you did to seed the initial elementary tables. looks like there's a Troubleshooting page for your issue. i'd be curious to see if your test results made it to
elementary_test_results
since you confirmed it found the tests, then escalate as needed!
j
Figured out! My dbt project has several targets dev/prod/dev personalized etc. Elementary has a flag called ‘—profile-target’ which needs to be set to the same
🙌 1
🐕 1