Skip to content

Commit

Permalink
test script instead of inline tox
Browse files Browse the repository at this point in the history
  • Loading branch information
emmyoop committed Nov 13, 2024
1 parent fa2d39d commit c303c40
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
12 changes: 12 additions & 0 deletions run_tox_test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

# test with the first project
cd integration_tests
dbt deps --target $1 || exit 1
dbt build -x --target $1 --full-refresh || exit 1

# test with the second project
cd ../integration_tests_2
dbt deps --target $1 || exit 1
dbt seed --full-refresh --target $1 || exit 1
dbt run -x --target $1 --full-refresh || exit 1
13 changes: 2 additions & 11 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,11 @@ passenv =
# Snowflake integration tests for centralized dbt testing
# run dbt commands directly, assumes dbt is already installed in environment
[testenv:dbt_integration_snowflake]
changedir = integration_tests
allowlist_externals =
dbt
cd
bash
skip_install = true
commands =
dbt deps --target snowflake
dbt build -x --target snowflake --full-refresh

# test with the second project
cd ../integration_tests_2
dbt deps --target snowflake
dbt seed --full-refresh --target snowflake
dbt run -x --target snowflake --full-refresh
bash ./run_tox_tests.sh snowflake


# Postgres integration tests for centralized dbt testing
Expand Down

0 comments on commit c303c40

Please sign in to comment.