Code for blog at http://www.startdataengineering.com/post/how-to-test-sql-using-dbt/
git clone https://github.com/josephmachado/unit_test_dbt.git
cd unit_test_dbt
chmod 755 setup_script.sh
chmod 755 tear_down_script.sh
chmod 755 run_dbt.sh
export PGPASSWORD=password # set password as env variable to not have to type it again
./setup_script.sh
./run_dbt.sh
./tear_down_script.sh