From 4a8e04f74d79146e4853e41ccd6a2bf1e0401bf9 Mon Sep 17 00:00:00 2001 From: Austin <93135983+austinFlipside@users.noreply.github.com> Date: Tue, 9 Aug 2022 10:55:16 -0400 Subject: [PATCH] store failures (#4) --- dbt_project.yml | 3 +++ macros/tests/tx_gaps.sql | 2 +- ...ctions__tx-gap.sql => test_silver__transactions_tx_gap.sql} | 0 3 files changed, 4 insertions(+), 1 deletion(-) rename tests/gnosis/{silver__transactions__tx-gap.sql => test_silver__transactions_tx_gap.sql} (100%) diff --git a/dbt_project.yml b/dbt_project.yml index 1683344..30f8225 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -24,6 +24,9 @@ clean-targets: # directories to be removed by `dbt clean` - "dbt_modules" - "dbt_packages" +tests: + +store_failures: true # all tests + on-run-start: - "{{ create_sps() }}" - "{{ create_udfs() }}" diff --git a/macros/tests/tx_gaps.sql b/macros/tests/tx_gaps.sql index f7d687c..a9d93df 100644 --- a/macros/tests/tx_gaps.sql +++ b/macros/tests/tx_gaps.sql @@ -22,7 +22,7 @@ SELECT block_base.block_number, tx_count, - model_name.block_number, + model_name.block_number AS model_block_number, model_tx_count FROM block_base diff --git a/tests/gnosis/silver__transactions__tx-gap.sql b/tests/gnosis/test_silver__transactions_tx_gap.sql similarity index 100% rename from tests/gnosis/silver__transactions__tx-gap.sql rename to tests/gnosis/test_silver__transactions_tx_gap.sql