-
Notifications
You must be signed in to change notification settings - Fork 91
Expand file tree
/
Copy pathrun_fusion_tests.sh
More file actions
executable file
·26 lines (21 loc) · 1.16 KB
/
run_fusion_tests.sh
File metadata and controls
executable file
·26 lines (21 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
# Run integration tests using dbt Fusion
# Usage: ./run_fusion_tests.sh <target>
# Note: --static-analysis=off is required for Fusion compatibility
# Note: deactivate_for_fusion=true disables tests that are not compatible with Fusion
FUSION_VARS='{"deactivate_for_fusion": true}'
echo "Running Fusion tests for the first project"
cd integration_tests
dbt deps --target $1 || exit 1
dbt build -x --target $1 --full-refresh --static-analysis=off --vars "$FUSION_VARS" || exit 1
echo "Running Fusion tests for the second project"
cd ../integration_tests_2
dbt deps --target $1 || exit 1
# Skip `dbt seed` under Fusion: it mis-resolves the package seed path with a
# doubled `dbt_packages/dbt_project_evaluator/...` prefix. Not needed here
# because this project runs `dbt run` only (no tests → no exceptions lookup).
dbt run -x --target $1 --full-refresh --static-analysis=off --vars "$FUSION_VARS" || exit 1
echo "Running Fusion tests for the SL project (new semantic layer spec)"
cd ../integration_tests_sl
dbt deps --target $1 || exit 1
SNOWFLAKE_SCHEMA="${SNOWFLAKE_SCHEMA}_sl" dbt build -x --target $1 --full-refresh --static-analysis=off --vars "$FUSION_VARS" || exit 1